mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): restore user (#15763)
This commit is contained in:
parent
9033a99587
commit
a0aea021a1
9 changed files with 39 additions and 6 deletions
|
|
@ -102,7 +102,7 @@ export class UserAdminService extends BaseService {
|
|||
async restore(auth: AuthDto, id: string): Promise<UserAdminResponseDto> {
|
||||
await this.findOrFail(id, { withDeleted: true });
|
||||
await this.albumRepository.restoreAll(id);
|
||||
const user = await this.userRepository.update(id, { deletedAt: null, status: UserStatus.ACTIVE });
|
||||
const user = await this.userRepository.restore(id);
|
||||
return mapUserAdmin(user);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue