fix: Minor collab adjusts

This commit is contained in:
Tom Moor
2021-10-13 22:01:30 -07:00
parent 18572cf9de
commit b9346fe6ea
4 changed files with 8 additions and 4 deletions

View File

@@ -19,7 +19,9 @@ export default class DebounceProcessor {
break;
}
case "documents.update.delayed": {
const document = await Document.findByPk(event.documentId);
const document = await Document.findByPk(event.documentId, {
fields: ["updatedAt"],
});
// If the document has been deleted then prevent further processing
if (!document) return;