fix(server): don't reimport files more than once (#16375)

* fix(server) don't reimport files more than once

* fix: test

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jonathan Jogenfors
2025-02-27 17:45:16 +01:00
committed by GitHub
parent a708649504
commit d20e2e268a
3 changed files with 42 additions and 7 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ export class MetadataService extends BaseService {
duration: exifTags.Duration?.toString() ?? null,
localDateTime,
fileCreatedAt: exifData.dateTimeOriginal ?? undefined,
fileModifiedAt: exifData.modifyDate ?? undefined,
fileModifiedAt: stats.mtime,
});
await this.assetRepository.upsertJobStatus({