Skip to content

Commit

Permalink
fix: 🏷️ try fix type of casl client
Browse files Browse the repository at this point in the history
  • Loading branch information
dennemark committed Aug 8, 2024
1 parent 3c7f3ac commit d39c4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function useCaslAbilities(getAbilityFactory: () => AbilityBuilder<PureAbi
const ctx = Prisma.getExtensionContext(this)
// alter the getAblities function shortly
getAbilities = () => extendFactory(getAbilityFactory())
return ctx
return ctx as typeof client
}
},
query: {
Expand Down

0 comments on commit d39c4cc

Please sign in to comment.