Invalid input value for enum

I have this enum definition as below and whenever I’m to make a request to save a data of the kind of the enum I always get back invalid input value for enum auth_type: “Form”, where as my enum was defined with uppercase. But if I use “form” it will accept it. Const authTypeEnum = pgEnum(“auth_type”, [“Form”, “Google”]); What could be the issues of this error? Because I have another enum and it works perfectly well in the uppercase specified in the definition Kindly help me
3 Replies
Dan
Dan2y ago
@Andrew Sherman that one is probably on kit Maybe something related to values escaping in the migrations
splashray
splashrayOP2y ago
Later solved Thanks @Dan Kochetov
Liam
Liam10mo ago
@splashray sorry to necro this but how did you solve it?
Want results from more Discord servers?
Add your server