chore(server): don't check null dates (#17664)

This commit is contained in:
Jonathan Jogenfors 2025-04-17 00:40:08 +02:00 committed by GitHub
parent 8b38f8a58d
commit ed2b54527c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -582,12 +582,7 @@ export class LibraryService extends BaseService {
return AssetSyncResult.CHECK_OFFLINE;
}
if (
!asset.fileCreatedAt ||
!asset.localDateTime ||
!asset.fileModifiedAt ||
stat.mtime.valueOf() !== asset.fileModifiedAt.valueOf()
) {
if (stat.mtime.valueOf() !== asset.fileModifiedAt.valueOf()) {
this.logger.verbose(`Asset ${asset.originalPath} needs metadata extraction in library ${asset.libraryId}`);
return AssetSyncResult.UPDATE;