mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
fix: X years ago ordering (#13742)
* fix: order by fileCreatedAt to account for tz * run make sql
This commit is contained in:
@@ -87,7 +87,7 @@ WHERE
|
||||
)
|
||||
AND ("entity"."deletedAt" IS NULL)
|
||||
ORDER BY
|
||||
"entity"."localDateTime" ASC
|
||||
"entity"."fileCreatedAt" ASC
|
||||
|
||||
-- AssetRepository.getByIds
|
||||
SELECT
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user