From 1724f2e178a21b77dd13f72b1b235109ffcc79e1 Mon Sep 17 00:00:00 2001 From: Shubhanshu Date: Thu, 16 Mar 2023 21:59:33 +0530 Subject: [PATCH] fix: append schema as parameter for updateCasbinRule() (#76) * fix: append schema as parameter for updateCasbinRule * fix: format check --- src/adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter.ts b/src/adapter.ts index a134e898..46376fb6 100644 --- a/src/adapter.ts +++ b/src/adapter.ts @@ -60,7 +60,7 @@ export class SequelizeAdapter implements Adapter { private async open(): Promise { 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) {