Generating types not working for enums: Field name 'request_status' works fine in the UI, but when the types are generated, it uses other values ("PENDING" | "SUCCESS" | "ERROR") #844
Labels
bug
Something isn't working
Bug report
Describe the bug
Field name 'request_status' works fine in the UI, but when the types are generated, it uses other values ("PENDING" | "SUCCESS" | "ERROR")
To Reproduce
In a Nuxt app with supabase, I created 2 enum types as such, then when generating the types, I get
statusA: "PENDING" | "SUCCESS" | "ERROR"
fortoto_bug
instead of the correctstatusA: Database["public"]["Enums"]["my_custom_status"]
fortoto_fine
. But it works as expected for both tables in the UI editor (I can use 'approved' for instance).Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: