diff --git a/app/models/Document.ts b/app/models/Document.ts index dd4bc375a..bbcd84121 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -285,6 +285,8 @@ export default class Document extends ParanoidModel { return; } + this.lastViewedAt = new Date().toString(); + return this.store.rootStore.views.create({ documentId: this.id, });