mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user