mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): avoid duplicate rows in album queries (#15670)
* avoid duplicate rows * left join, handle null vs. undefined * update sql
This commit is contained in:
parent
4f725b95e1
commit
05a446c259
6 changed files with 103 additions and 130 deletions
|
|
@ -9,8 +9,8 @@ export const IAlbumRepository = 'IAlbumRepository';
|
|||
export interface AlbumAssetCount {
|
||||
albumId: string;
|
||||
assetCount: number;
|
||||
startDate: Date | undefined;
|
||||
endDate: Date | undefined;
|
||||
startDate: Date | null;
|
||||
endDate: Date | null;
|
||||
}
|
||||
|
||||
export interface AlbumInfoOptions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue