Skip to content

Commit

Permalink
HOTFIX - switching back to mockData to prevent opaService bootstrap e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
mattschoch committed Feb 5, 2024
1 parent 4d3e6e3 commit aa12b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/authz/src/app/opa/opa.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export class OpaService implements OnApplicationBootstrap {
const opaEngine = await loadPolicy(policyWasm, undefined, {
'time.now_ns': () => new Date().getTime() * 1000000
})
await this.reloadEntityData()
const mockData = await this.adminRepository.getEntityData()
opaEngine.setData(mockData)
return opaEngine
}
}

0 comments on commit aa12b51

Please sign in to comment.