Przeglądaj źródła

fix(server): use updated AssetEntity property in getting server info query (#1797)

Alex 2 lat temu
rodzic
commit
5d3e8f17d1

+ 2 - 2
server/apps/immich/src/api-v1/server-info/server-info.service.ts

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