mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Merge pull request #19292 from overleaf/jdt-mj-imported-at
copying a project should preserve a linked files created timestamp GitOrigin-RevId: d82506db1fb3f54567e638346179413468419b82
This commit is contained in:
committed by
Copybot
parent
8cdb413a61
commit
80e49ce358
@@ -194,6 +194,7 @@ async function _copyFiles(sourceEntries, sourceProject, targetProject) {
|
||||
const file = new File({ name: SafePath.clean(sourceFile.name) })
|
||||
if (sourceFile.linkedFileData != null) {
|
||||
file.linkedFileData = sourceFile.linkedFileData
|
||||
file.created = sourceFile.created
|
||||
}
|
||||
if (sourceFile.hash != null) {
|
||||
file.hash = sourceFile.hash
|
||||
|
||||
@@ -18,6 +18,7 @@ describe('ProjectDuplicator', function () {
|
||||
this.file2 = {
|
||||
name: 'file2',
|
||||
_id: 'file2',
|
||||
created: '2024-07-05T14:18:31.401+00:00',
|
||||
linkedFileData: { provider: 'url' },
|
||||
hash: '123456',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user