mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 09:15:34 +03:00
fix(server): folder sort order (#21383)
This commit is contained in:
@@ -12,6 +12,8 @@ where
|
||||
and "fileCreatedAt" is not null
|
||||
and "fileModifiedAt" is not null
|
||||
and "localDateTime" is not null
|
||||
order by
|
||||
"directoryPath" asc
|
||||
|
||||
-- ViewRepository.getAssetsByOriginalPath
|
||||
select
|
||||
|
||||
@@ -20,6 +20,7 @@ export class ViewRepository {
|
||||
.where('fileCreatedAt', 'is not', null)
|
||||
.where('fileModifiedAt', 'is not', null)
|
||||
.where('localDateTime', 'is not', null)
|
||||
.orderBy('directoryPath', 'asc')
|
||||
.execute();
|
||||
|
||||
return results.map((row) => row.directoryPath.replaceAll(/\/$/g, ''));
|
||||
|
||||
Reference in New Issue
Block a user