🪵 Notifications necessary logs (#266)
This commit is contained in:
@@ -426,6 +426,9 @@ export class DocumentsService {
|
|||||||
|
|
||||||
if (sharedWith.length > 0) {
|
if (sharedWith.length > 0) {
|
||||||
// Notify the user that the document has been shared with them
|
// 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({
|
gr.services.documents.engine.notifyDocumentShared({
|
||||||
context,
|
context,
|
||||||
item,
|
item,
|
||||||
@@ -733,6 +736,10 @@ export class DocumentsService {
|
|||||||
await this.repository.save(item);
|
await this.repository.save(item);
|
||||||
|
|
||||||
// Notify the user that the document versions have been updated
|
// 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({
|
gr.services.documents.engine.notifyDocumentVersionUpdated({
|
||||||
context,
|
context,
|
||||||
item,
|
item,
|
||||||
|
|||||||
Reference in New Issue
Block a user