mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 10:19:20 +03:00
fix: user upd
This commit is contained in:
parent
0472036b66
commit
cc36a77912
@ -195,7 +195,6 @@ export default class UserService {
|
||||
}
|
||||
|
||||
await ctx.bouncer.with('RolePolicy').authorize('manage', user.roles.map(r => r.slug) as [RoleEnum]);
|
||||
const updated = await this.userRepository.update(id, data);
|
||||
|
||||
/**
|
||||
* Update user role
|
||||
@ -209,6 +208,8 @@ export default class UserService {
|
||||
}
|
||||
}
|
||||
|
||||
const updated = await this.userRepository.update(id, data);
|
||||
|
||||
return {
|
||||
success: true,
|
||||
status: HttpStatusEnum.OK,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user