mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Use an ISODate for deleted file names
This commit is contained in:
parent
9d32d4ec16
commit
cb4bdd99f4
2 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ async function deleteFile(bucketName, key) {
|
|||
await file.copy(
|
||||
storage
|
||||
.bucket(`${bucketName}${settings.filestore.gcs.deletedBucketSuffix}`)
|
||||
.file(`${key}-${new Date()}`)
|
||||
.file(`${key}-${new Date().toISOString()}`)
|
||||
)
|
||||
}
|
||||
if (settings.filestore.gcs.unlockBeforeDelete) {
|
||||
|
|
|
@ -453,7 +453,7 @@ describe('Filestore', function() {
|
|||
await TestHelper.expectPersistorToHaveFile(
|
||||
app.persistor,
|
||||
`${Settings.filestore.stores.user_files}-deleted`,
|
||||
`${projectId}/${fileId}-${date}`,
|
||||
`${projectId}/${fileId}-${date.toISOString()}`,
|
||||
content
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue