1 parent
cc68948a20
commit
b2bd6173a5
2 files changed
+6
-8
No files matched your search
@@ -96,7 +96,7 @@ export class PermissionController {
|
||||
return new ResponsePermission(existingPermission);
|
||||
}
|
||||
|
||||
await this.permissionRepository.update(oldPermission, await permission.toPermission());
|
||||
await this.permissionRepository.save(await permission.updatePermission(oldPermission));
|
||||
|
||||
return new ResponsePermission(await this.permissionRepository.findOne({ id: permission.id }, { relations: ['principal'] }));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user