[web] update the projects lastUpdated timestamp when changing file-tree (#24867)

* [misc] freeze time before any other unit test setup steps

Freezing it after other work (notably sandboxed-module imports) will
result in flaky tests.

* [web] update the projects lastUpdated timestamp when changing file-tree

GitOrigin-RevId: b82b2ff74dc31886f3c4bd300375117eead6e0cd
This commit is contained in:
Jakob Ackermann
2025-04-16 08:05:14 +00:00
committed by Copybot
parent d6c2188f2d
commit f0edc7ba00
21 changed files with 357 additions and 165 deletions
@@ -104,7 +104,8 @@ async function deleteDoc(projectId, docId) {
await ProjectEntityMongoUpdateHandler.promises.deleteEntity(
projectId,
docId,
'doc'
'doc',
null // unset lastUpdatedBy
)
}
}
@@ -115,7 +116,8 @@ async function deleteFile(projectId, fileId) {
await ProjectEntityMongoUpdateHandler.promises.deleteEntity(
projectId,
fileId,
'file'
'file',
null // unset lastUpdatedBy
)
}
}