Closed Dr-Greg closed 10 months ago
Fix: https://github.com/node-casbin/prisma-adapter/issues/55
The existence check with ! alone is insufficient to ensure that astMap is not undefined. The model.get() function can still return undefined, necessitating an explicit check for its presence.
!
astMap
model.get()
@nodece @Shivansh-yadav13 please review
All committers have signed the CLA.
:tada: This PR is included in version 1.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Fix: https://github.com/node-casbin/prisma-adapter/issues/55
The existence check with
!
alone is insufficient to ensure thatastMap
is not undefined. Themodel.get()
function can still return undefined, necessitating an explicit check for its presence.