Skip to content

Commit

Permalink
Merge 7127e0c into 5a736f0
Browse files Browse the repository at this point in the history
  • Loading branch information
nawbc committed Jun 23, 2022
2 parents 5a736f0 + 7127e0c commit d72c489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter.ts
Expand Up @@ -158,7 +158,7 @@ export class NodeRedisAdapter implements FilteredAdapter {
return await new Promise((resolve, reject) => {
this.redisInstance.get("policies", (err, policies) => {
if (!err) {
const parsedPolicies = JSON.parse(policies!)
const parsedPolicies = JSON.parse(policies!) ?? []
this.policies = parsedPolicies // for adding and removing policies methods
parsedPolicies.forEach((policy: any) => {
this.loadPolicyLine(policy, model)
Expand Down

0 comments on commit d72c489

Please sign in to comment.