1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Let album manager return with empty albums #587

This commit is contained in:
Patrik J. Braun 2023-08-07 23:13:23 +02:00
parent ade094cde0
commit 63236c30fd

View File

@ -81,8 +81,8 @@ export class AlbumManager implements IObjectManager {
return await connection return await connection
.getRepository(AlbumBaseEntity) .getRepository(AlbumBaseEntity)
.createQueryBuilder('album') .createQueryBuilder('album')
.innerJoin('album.preview', 'preview') .leftJoin('album.preview', 'preview')
.innerJoin('preview.directory', 'directory') .leftJoin('preview.directory', 'directory')
.select(['album', 'preview.name', 'directory.name', 'directory.path']) .select(['album', 'preview.name', 'directory.name', 'directory.path'])
.getMany(); .getMany();
} }