mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(server): folder sort order (#21383)
This commit is contained in:
parent
b6223af5ca
commit
460e1d4715
2 changed files with 3 additions and 0 deletions
|
|
@ -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, ''));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue