Просмотр исходного кода

[notifications] include tracked changes in email notifications

GitOrigin-RevId: 01011739ef183e0fca606a5d9cbf6c23eaa14644
Domagoj Kriskovic 10 месяцев назад
Родитель
Сommit
580fc2bad6

+ 7 - 1
services/web/app/src/Features/Documents/DocumentController.mjs

@@ -94,7 +94,13 @@ async function setDocument(req, res) {
     'finished receiving set document request from api (docupdater)'
     'finished receiving set document request from api (docupdater)'
   )
   )
 
 
-  await Modules.promises.hooks.fire('docModified', projectId, docId, ranges)
+  await Modules.promises.hooks.fire(
+    'docModified',
+    projectId,
+    docId,
+    ranges,
+    lastUpdatedAt
+  )
 
 
   res.json(result)
   res.json(result)
 }
 }

+ 5 - 0
services/web/types/module-hooks.ts

@@ -8,3 +8,8 @@ export type CommentAddedEvent = {
   threadId: string
   threadId: string
   messageId: string
   messageId: string
 }
 }
+
+export type ProjectModifiedEvent = {
+  projectId: string
+  timestamp: number
+}