diff --git a/server/src/services/album.service.ts b/server/src/services/album.service.ts index 24b0668eb2..0955e0563d 100644 --- a/server/src/services/album.service.ts +++ b/server/src/services/album.service.ts @@ -107,7 +107,7 @@ export class AlbumService extends BaseService { for (const { userId } of albumUsers) { const exists = await this.userRepository.get(userId, {}); if (!exists) { - throw new BadRequestException('User not found'); + throw new BadRequestException('Invalid user'); } if (userId == auth.user.id) { @@ -302,7 +302,7 @@ export class AlbumService extends BaseService { const user = await this.userRepository.get(userId, {}); if (!user) { - throw new BadRequestException('User not found'); + throw new BadRequestException('Invalid user'); } await this.albumUserRepository.create({ userId, albumId: id, role });