1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-21 18:16:55 +02:00

fix: X years ago ordering (#13742)

* fix: order by fileCreatedAt to account for tz

* run make sql
This commit is contained in:
Darrel 2024-10-27 03:28:33 +08:00 committed by GitHub
parent 88d85eff0a
commit a70ed7c7f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ WHERE
)
AND ("entity"."deletedAt" IS NULL)
ORDER BY
"entity"."localDateTime" ASC
"entity"."fileCreatedAt" ASC
-- AssetRepository.getByIds
SELECT

View File

@ -93,7 +93,7 @@ export class AssetRepository implements IAssetRepository {
)
.leftJoinAndSelect('entity.exifInfo', 'exifInfo')
.leftJoinAndSelect('entity.files', 'files')
.orderBy('entity.localDateTime', 'ASC')
.orderBy('entity.fileCreatedAt', 'ASC')
.getMany();
}