Skip to content

Commit dec6700

Browse files
committed
docs: fix incorrect method name
1 parent 49cea4d commit dec6700

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ export const plugins: Config['plugins'] = [
390390
]
391391
```
392392

393-
### addPolicy
394-
Register AdonisJS bouncer policy to the list of `policies` object exported from the `app/policies/main.ts` file.
393+
### addPolicies
394+
Register AdonisJS bouncer policies to the list of `policies` object exported from the `app/policies/main.ts` file.
395395

396396
> [!IMPORTANT]
397397
> This codemod expects the `app/policies/main.ts` file to exist and must export a `policies` object from it.
@@ -400,7 +400,7 @@ Register AdonisJS bouncer policy to the list of `policies` object exported from
400400
const transformer = new CodeTransformer(appRoot)
401401

402402
try {
403-
await transformer.addPolicy([
403+
await transformer.addPolicies([
404404
{
405405
name: 'PostPolicy',
406406
path: '#policies/post_policy'

0 commit comments

Comments
 (0)