diff --git a/api/src/services/roles.ts b/api/src/services/roles.ts index 0ff5d3f4a5..eff48f77b4 100644 --- a/api/src/services/roles.ts +++ b/api/src/services/roles.ts @@ -66,7 +66,7 @@ export class RolesService extends ItemsService { return; } - async updateOne(key: PrimaryKey, data: Record, opts?: MutationOptions) { + async updateOne(key: PrimaryKey, data: Record, opts?: MutationOptions): Promise { if ('admin_access' in data && data.admin_access === false) { await this.checkForOtherAdminRoles([key]); } @@ -78,7 +78,7 @@ export class RolesService extends ItemsService { return super.updateOne(key, data, opts); } - async updateMany(keys: PrimaryKey[], data: Record, opts?: MutationOptions) { + async updateMany(keys: PrimaryKey[], data: Record, opts?: MutationOptions): Promise { if ('admin_access' in data && data.admin_access === false) { await this.checkForOtherAdminRoles(keys); }