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:
parent
88d85eff0a
commit
a70ed7c7f6
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user