Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samteb committed Feb 27, 2024
1 parent 2421728 commit f55dbf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import wallets from './data/wallets.json'
import legacyRequests from './requests/legacy-requests.json'

export const run = async () => {
// eslint-disable-next-line no-explicit-any

Check failure on line 12 in apps/policy-engine/src/opa/script/evaluate-legacy-policy.script.ts

View workflow job for this annotation

GitHub Actions / Build and test

Definition for rule 'no-explicit-any' was not found
const entities: { [key: string]: any } = { users: {}, wallets: {} }

Check failure on line 13 in apps/policy-engine/src/opa/script/evaluate-legacy-policy.script.ts

View workflow job for this annotation

GitHub Actions / Build and test

Unexpected any. Specify a different type

for (const user of users) {
Expand Down Expand Up @@ -145,9 +146,9 @@ export const run = async () => {
// }
// }

// if (status == 'completed' && !results[0].permit) {
// console.log({ id: results[0].reasons.map((reason) => reason.policyName), status, result: results[0].permit })
// }
if (status == 'completed' && !results[0].permit) {
console.log({ id: results[0].reasons.map((reason) => reason.policyName), status, result: results[0].permit })
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ describe('decode', () => {
type: InputType.RAW,
raw: {
algorithm: Alg.ES256K,
rawData: '0xdeadbeef'
payload: '0xdeadbeef'
}
}
})
Expand Down

0 comments on commit f55dbf9

Please sign in to comment.