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:
parent
ade094cde0
commit
63236c30fd
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user