1
0
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:
Alex 2023-02-19 16:57:39 -06:00 committed by GitHub
parent 78a5fe2d37
commit 5d3e8f17d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();