Fix: Don't send notifications for autosave events
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user