Skip to content

Commit 6b731d4

Browse files
authored
Merge pull request #1 from pswamis/fix/lazy-loading-newEnforcer
feat: add lazyLoad parameter to initWithAdapter in newEnforcerWithClass
2 parents 7aedfcf + abb9de6 commit 6b731d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/enforcer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ export async function newEnforcerWithClass<T extends Enforcer>(enforcer: new ()
501501
if (typeof params[1] === 'string') {
502502
await e.initWithFile(params[0].toString(), params[1].toString());
503503
} else {
504-
await e.initWithAdapter(params[0].toString(), params[1]);
504+
await e.initWithAdapter(params[0].toString(), params[1], params[2] === true);
505505
}
506506
} else {
507507
if (typeof params[1] === 'string') {

0 commit comments

Comments
 (0)