mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
fix(server): use updated AssetEntity property in getting server info query (#1797)
This commit is contained in:
parent
78a5fe2d37
commit
5d3e8f17d1
@ -46,11 +46,11 @@ export class ServerInfoService {
|
||||
.createQueryBuilder('a')
|
||||
.select('COUNT(a.id)', 'assetCount')
|
||||
.addSelect('SUM(ei.fileSizeInByte)', 'totalSizeInBytes')
|
||||
.addSelect('a."userId"')
|
||||
.addSelect('a."ownerId"')
|
||||
.addSelect('a.type', 'assetType')
|
||||
.where('a.isVisible = true')
|
||||
.leftJoin('a.exifInfo', 'ei')
|
||||
.groupBy('a."userId"')
|
||||
.groupBy('a."ownerId"')
|
||||
.addGroupBy('a.type')
|
||||
.getRawMany();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user