fix(server): only calculate quota usage for internal assets (#6556)

only calculate usage for internal assets
This commit is contained in:
Daniel Dietzler
2024-01-21 22:48:29 +01:00
committed by GitHub
parent 311261bd4e
commit 607fd39130
2 changed files with 2 additions and 1 deletions
@@ -121,7 +121,7 @@ export class UserRepository implements IUserRepository {
.createQueryBuilder('assets')
.select('COALESCE(SUM(exif."fileSizeInByte"), 0)')
.leftJoin('assets.exifInfo', 'exif')
.where('assets.ownerId = users.id')
.where('assets.ownerId = users.id AND NOT assets.isExternal')
.withDeleted();
const query = this.userRepository