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
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user