GitOrigin-RevId: 01011739ef183e0fca606a5d9cbf6c23eaa14644
@@ -94,7 +94,13 @@ async function setDocument(req, res) {
'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)
}
@@ -8,3 +8,8 @@ export type CommentAddedEvent = {
threadId: string
messageId: string
+
+export type ProjectModifiedEvent = {
+ projectId: string
+ timestamp: number
+}