Skip to content

Commit

Permalink
fix: append schema as parameter for updateCasbinRule() (#76)
Browse files Browse the repository at this point in the history
* fix: append schema as parameter for updateCasbinRule

* fix: format check
  • Loading branch information
shubhanshusingh authored Mar 16, 2023
1 parent 0ae1c9d commit 1724f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class SequelizeAdapter implements Adapter {

private async open(): Promise<void> {
this.sequelize = new Sequelize(this.option);
updateCasbinRule(this.option.tableName);
updateCasbinRule(this.option.tableName, this.option.schema);
await this.sequelize.authenticate();
this.sequelize.addModels([CasbinRule]);
if (this.autoCreateTable) {
Expand Down

0 comments on commit 1724f2e

Please sign in to comment.