From 2e442b27577ae7c1ccc7afffe2880e5cc122e667 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Wed, 28 Jul 2021 12:04:55 -0400 Subject: [PATCH] Fix return type in roles service --- api/src/services/roles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }