Skip to content

Commit

Permalink
fix: add missing await
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
  • Loading branch information
Zxilly committed Mar 18, 2021
1 parent 65d3a26 commit 523ce85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreEnforcer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class CoreEnforcer {
protected async buildRoleLinksInternal(): Promise<void> {
// await this.model.buildRoleLinks(this.rmMap);
for (const rm of this.rmMap.values()) {
rm.clear();
await rm.clear();
await this.model.buildRoleLinks(rm);
}
}
Expand Down

0 comments on commit 523ce85

Please sign in to comment.