Skip to content

Commit 227ac53

Browse files
authored
Merge branch 'main' into development
2 parents 8e5e4ba + 23711c9 commit 227ac53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

classes/Group/Group.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export default class Group {
267267
if (!this.isValidRolesMap(roles))
268268
throw new Error("Invalid roles. Must be a JSON Object with keys as roles and values as arrays of permissions or space-delimited strings.")
269269
this.data.customRoles = roles
270-
await this.update()
270+
return this.update()
271271
}
272272

273273
async addCustomRoles(roleMap) {
@@ -277,7 +277,7 @@ export default class Group {
277277
if (!this.isValidRolesMap(roleMap))
278278
throw new Error("Invalid roles. Must be a JSON Object with keys as roles and values as arrays of permissions or space-delimited strings.")
279279
this.data.customRoles = { ...this.data.customRoles, ...roleMap }
280-
await this.update()
280+
return this.update()
281281
}
282282

283283
async removeCustomRoles(roleName) {
@@ -286,7 +286,7 @@ export default class Group {
286286
}
287287

288288
delete this.data.customRoles[roleName]
289-
await this.update()
289+
return this.update()
290290
}
291291

292292
async save() {

0 commit comments

Comments
 (0)