mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(server): use updated AssetEntity property in getting server info query (#1797)
This commit is contained in:
		@@ -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();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user