mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
fix assetCount getting reset when adding users
This commit is contained in:
parent
3211894e18
commit
ffc4697d4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue