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:
Mert 2025-01-25 23:37:19 -05:00 committed by GitHub
parent 4f725b95e1
commit 05a446c259
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 103 additions and 130 deletions

View file

@ -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 {