[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
+2 -1
View File
@@ -76,7 +76,8 @@ async function processDoc(projectId, docId) {
await ProjectEntityMongoUpdateHandler.promises.replaceDocWithFile(
new ObjectId(projectId),
new ObjectId(docId),
fileRef
fileRef,
null // unset lastUpdatedBy
)
await deleteDocFromMongo(projectId, doc)
await deleteDocFromRedis(projectId, docId)