safeql icon indicating copy to clipboard operation
safeql copied to clipboard

Enum mapping doesn't being recognized when used in a query

Open y-teicher opened this issue 2 years ago • 1 comments

Describe the bug When defining in .eslintrc.js file under overrides.types a mapping of an enum, safeql doesn't recognize it when the enum is used in a query (and not as a type). The .eslintrc.js file: Screenshot 2023-07-05 at 12 11 13 The error: Screenshot 2023-07-05 at 12 06 52

To Reproduce Use a enum as a parameter of a query

Expected behavior No error should appear

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

Desktop (please complete the following information):

  • OS: iOS
  • PostgreSQL version: 15
  • Version: 0.1.0

y-teicher avatar Jul 05 '23 09:07 y-teicher

It seems like I didn't take into consideration enums. I'll push a fix today or in a few days

Newbie012 avatar Jul 05 '23 11:07 Newbie012