refactor: rename role.options -> role.policies
This commit is contained in:
parent
518b3e2f73
commit
81f11d8f86
53 changed files with 254 additions and 232 deletions
|
|
@ -47,10 +47,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
// Calculate drive usage
|
||||
const usage = await this.driveFileEntityService.calcDriveUsageOf(me.id);
|
||||
|
||||
const myRole = await this.roleService.getUserRoleOptions(me.id);
|
||||
const policies = await this.roleService.getUserPolicies(me.id);
|
||||
|
||||
return {
|
||||
capacity: 1024 * 1024 * myRole.driveCapacityMb,
|
||||
capacity: 1024 * 1024 * policies.driveCapacityMb,
|
||||
usage: usage,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue