From 44e51d48ad5915c46e4d0a9391781e20a2df5735 Mon Sep 17 00:00:00 2001 From: Montassar Ghanmy Date: Tue, 21 Nov 2023 11:08:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B5=20Notifications=20necessary=20logs?= =?UTF-8?q?=20(#266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/node/src/services/documents/services/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tdrive/backend/node/src/services/documents/services/index.ts b/tdrive/backend/node/src/services/documents/services/index.ts index b4023885..f9cc191f 100644 --- a/tdrive/backend/node/src/services/documents/services/index.ts +++ b/tdrive/backend/node/src/services/documents/services/index.ts @@ -426,6 +426,9 @@ export class DocumentsService { if (sharedWith.length > 0) { // Notify the user that the document has been shared with them + this.logger.info("Notifying user that the document has been shared with them: ", { + sharedWith, + }); gr.services.documents.engine.notifyDocumentShared({ context, item, @@ -733,6 +736,10 @@ export class DocumentsService { await this.repository.save(item); // Notify the user that the document versions have been updated + this.logger.info("Notifying user that the document has been updated: ", { + item, + notificationEmitter: context.user.id, + }); gr.services.documents.engine.notifyDocumentVersionUpdated({ context, item,