Fix: Don't send notifications for autosave events

This commit is contained in:
Tom Moor
2019-04-17 21:55:11 -07:00
parent 77f28584d4
commit 5b34a4f076
4 changed files with 15 additions and 1 deletions

View File

@ -17,6 +17,9 @@ export default class Notifications {
}
async documentUpdated(event: Event) {
// lets not send a notification on every autosave update
if (event.autosave) return;
const document = await Document.findById(event.modelId);
if (!document) return;