mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 07:10:35 -05:00
fix(server): folder sort order (#21383)
This commit is contained in:
parent
b6223af5ca
commit
460e1d4715
@ -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…
x
Reference in New Issue
Block a user