Error validating two equal values #2120
leandrodavimg
started this conversation in
General
Replies: 2 comments 2 replies
-
Not quite sure what the problem is. You check for inequality |
Beta Was this translation helpful? Give feedback.
1 reply
-
This line of code Also, the root cause can be that one is a number and other is a string. So its always nice to debug the value types along with the value. Try changing it to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am doing a validation of the ID passed in the route with the user ID logged in.
validation is always returning true even though it is false
in my route: /user/edit/1
in my user logged: {"id": 1, ...}
My return in terminal
ID parameter: 1 ID AUTH: 1 true
I created the following type for my parameter
maybe it's simple to solve, but my head is crazy about it
Beta Was this translation helpful? Give feedback.
All reactions