Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 4c90d12

Browse files
committed
src/opaclient: update code for renamed field
Signed-off-by: Stephan Renatus <[email protected]>
1 parent 0ccf4ff commit 4c90d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/opaclient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export class OPAClient {
9595
opts,
9696
);
9797
}
98-
if (!result.successfulPolicyEvaluation) throw `no result in API response`;
99-
const res = result.successfulPolicyEvaluation.result;
98+
if (!result.successfulPolicyResponse) throw `no result in API response`;
99+
const res = result.successfulPolicyResponse.result;
100100
const fromResult = opts?.fromResult;
101101
return fromResult ? fromResult(res) : (res as Res);
102102
}

0 commit comments

Comments
 (0)