fix: album performances (#5224)

* fix: album performances

* fix: tests
This commit is contained in:
martin
2023-11-21 15:49:53 +01:00
committed by GitHub
parent c46e82561e
commit c438e17954
2 changed files with 6 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ export class AlbumRepository implements IAlbumRepository {
],
relations: { owner: true, sharedUsers: true },
order: { createdAt: 'DESC' },
relationLoadStrategy: 'query',
});
}
@@ -91,6 +92,7 @@ export class AlbumRepository implements IAlbumRepository {
relations: { sharedUsers: true, sharedLinks: true, owner: true },
where: { ownerId },
order: { createdAt: 'DESC' },
relationLoadStrategy: 'query',
});
}
@@ -106,6 +108,7 @@ export class AlbumRepository implements IAlbumRepository {
{ ownerId, sharedUsers: { id: Not(IsNull()) } },
],
order: { createdAt: 'DESC' },
relationLoadStrategy: 'query',
});
}
@@ -117,6 +120,7 @@ export class AlbumRepository implements IAlbumRepository {
relations: { sharedUsers: true, sharedLinks: true, owner: true },
where: { ownerId, sharedUsers: { id: IsNull() }, sharedLinks: { id: IsNull() } },
order: { createdAt: 'DESC' },
relationLoadStrategy: 'query',
});
}