mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 19:38:54 +03:00
rename to updateUser in album service
This commit is contained in:
@@ -105,6 +105,6 @@ export class AlbumController {
|
||||
@Param('userId', new ParseMeUUIDPipe({ version: '4' })) userId: string,
|
||||
@Body() dto: UpdateAlbumUserDto,
|
||||
): Promise<void> {
|
||||
return this.service.updateAlbumUser(auth, id, userId, dto);
|
||||
return this.service.updateUser(auth, id, userId, dto);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ export class AlbumService {
|
||||
await this.albumUserRepository.delete({ albumId: id, userId });
|
||||
}
|
||||
|
||||
async updateAlbumUser(auth: AuthDto, id: string, userId: string, dto: Partial<AlbumUserEntity>): Promise<void> {
|
||||
async updateUser(auth: AuthDto, id: string, userId: string, dto: Partial<AlbumUserEntity>): Promise<void> {
|
||||
await this.access.requirePermission(auth, Permission.ALBUM_SHARE, id);
|
||||
|
||||
const album = await this.findOrFail(id, { withAssets: false });
|
||||
|
||||
Reference in New Issue
Block a user