zenstackhq / zenstack

Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
https://zenstack.dev
MIT License
2.07k stars 88 forks source link

Wrong hooks endpoints generated #501

Closed potikhanovsergey closed 1 year ago

potikhanovsergey commented 1 year ago

After I run "npm run generate" to auto-generate hooks, some of them are wrong, At the screenshot, the hook's endpoint should be /findFirst, but there's /findMany instead.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

image
ymc9 commented 1 year ago

Oops ... that's a bad mistake. Thanks for filing it @potikhanovsergey and my apologies for the carelessness. I'll push a fix today.

ymc9 commented 1 year ago

Fixed in version "beta.2".