fix: do not emit AlbumInvite event for owner (#28110)

This commit is contained in:
Daniel Dietzler
2026-04-27 19:59:46 +02:00
committed by GitHub
parent 5e89efba64
commit fe9e5afcf4
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -114,7 +114,6 @@ export class AlbumService extends BaseService {
throw new BadRequestException('Cannot share album with owner');
}
}
albumUsers.unshift({ userId: auth.user.id, role: AlbumUserRole.Owner });
const allowedAssetIdsSet = await this.checkAccess({
auth,
@@ -133,7 +132,7 @@ export class AlbumService extends BaseService {
order: getPreferences(userMetadata).albums.defaultAssetOrder,
},
assetIds,
albumUsers,
[{ userId: auth.user.id, role: AlbumUserRole.Owner }, ...albumUsers],
auth.user.id,
);