mirror of
https://github.com/immich-app/immich.git
synced 2026-02-12 03:47:51 +03:00
fix assetCount getting reset when adding users
This commit is contained in:
@@ -215,7 +215,7 @@ export class AlbumService {
|
||||
async addUsers(auth: AuthDto, id: string, dto: AddUsersDto): Promise<AlbumResponseDto> {
|
||||
await this.access.requirePermission(auth, Permission.ALBUM_SHARE, id);
|
||||
|
||||
const album = await this.findOrFail(id, { withAssets: false });
|
||||
const album = await this.findOrFail(id, { withAssets: true });
|
||||
|
||||
for (const userId of dto.sharedUserIds) {
|
||||
if (album.ownerId === userId) {
|
||||
|
||||
Reference in New Issue
Block a user