mirror of
https://github.com/immich-app/immich.git
synced 2025-02-17 19:49:40 +02:00
fix(server): /places
entries sometimes not ordered alphabetically (#10514)
This commit is contained in:
parent
5e9a7b17d9
commit
42f3b50422
@ -405,3 +405,5 @@ FROM
|
|||||||
"assets" "asset"
|
"assets" "asset"
|
||||||
INNER JOIN "exif" "exif" ON "exif"."assetId" = "asset"."id"
|
INNER JOIN "exif" "exif" ON "exif"."assetId" = "asset"."id"
|
||||||
INNER JOIN cte ON asset.id = cte."assetId"
|
INNER JOIN cte ON asset.id = cte."assetId"
|
||||||
|
ORDER BY
|
||||||
|
exif.city
|
||||||
|
@ -52,7 +52,7 @@ export class SearchRepository implements ISearchRepository {
|
|||||||
.innerJoinAndSelect('asset.exifInfo', 'exif')
|
.innerJoinAndSelect('asset.exifInfo', 'exif')
|
||||||
.withDeleted()
|
.withDeleted()
|
||||||
.getQuery() +
|
.getQuery() +
|
||||||
' INNER JOIN cte ON asset.id = cte."assetId"';
|
' INNER JOIN cte ON asset.id = cte."assetId" ORDER BY exif.city';
|
||||||
}
|
}
|
||||||
|
|
||||||
async init(modelName: string): Promise<void> {
|
async init(modelName: string): Promise<void> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user