From 63236c30fd9a9c3e00e5b8eadc8caeac369e0f25 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Mon, 7 Aug 2023 23:13:23 +0200 Subject: [PATCH] Let album manager return with empty albums #587 --- src/backend/model/database/AlbumManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/model/database/AlbumManager.ts b/src/backend/model/database/AlbumManager.ts index 5ced81f6..f3e907b9 100644 --- a/src/backend/model/database/AlbumManager.ts +++ b/src/backend/model/database/AlbumManager.ts @@ -81,8 +81,8 @@ export class AlbumManager implements IObjectManager { return await connection .getRepository(AlbumBaseEntity) .createQueryBuilder('album') - .innerJoin('album.preview', 'preview') - .innerJoin('preview.directory', 'directory') + .leftJoin('album.preview', 'preview') + .leftJoin('preview.directory', 'directory') .select(['album', 'preview.name', 'directory.name', 'directory.path']) .getMany(); }