mirror of
https://github.com/immich-app/immich.git
synced 2025-02-14 19:35:28 +02:00
Merge branch 'feat/nullable-dates' into feat/inline-offline-check
This commit is contained in:
commit
df56b4121c
@ -495,8 +495,6 @@ export class AssetRepository implements IAssetRepository {
|
||||
qb
|
||||
.leftJoin('asset_job_status as job_status', 'assets.id', 'job_status.assetId')
|
||||
.where((eb) => eb.or([eb('job_status.metadataExtractedAt', 'is', null), eb('assetId', 'is', null)]))
|
||||
.where('assets.fileCreatedAt', 'is not', null)
|
||||
.where('assets.fileModifiedAt', 'is not', null)
|
||||
.where('assets.isVisible', '=', true),
|
||||
)
|
||||
.$if(property === WithoutProperty.FACES, (qb) =>
|
||||
|
@ -164,7 +164,7 @@ export class MetadataService extends BaseService {
|
||||
this.logger.verbose('Exif Tags', exifTags);
|
||||
|
||||
if (!asset.fileCreatedAt) {
|
||||
asset.fileCreatedAt = stats.birthtime;
|
||||
asset.fileCreatedAt = stats.mtime;
|
||||
}
|
||||
|
||||
if (!asset.fileModifiedAt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user