Skip to content

Commit

Permalink
feat: update package version, typescript and fix TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrax63 committed Jun 15, 2022
1 parent adf3e3c commit b54f5e0
Show file tree
Hide file tree
Showing 3 changed files with 5,014 additions and 4,928 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rimraf": "^2.6.2",
"ts-jest": "22.4.6",
"tslint": "^5.11.0",
"typescript": "^3.1.3"
"typescript": "^4.7.3"
},
"dependencies": {
"casbin": "^5.11.5",
Expand Down
8 changes: 6 additions & 2 deletions src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ export default class TypeORMAdapter implements FilteredAdapter {
await getRepository(
this.getCasbinRuleConstructor(),
this.option.name,
).delete(line);
).delete({
...line,
});
}

/**
Expand Down Expand Up @@ -314,7 +316,9 @@ export default class TypeORMAdapter implements FilteredAdapter {
await getRepository(
this.getCasbinRuleConstructor(),
this.option.name,
).delete(line);
).delete({
...line,
});
}

private getCasbinRuleConstructor(): CasbinRuleConstructor {
Expand Down
Loading

0 comments on commit b54f5e0

Please sign in to comment.