🐛 Fix attitude 0 detected as non-provided
This commit is contained in:
parent
97e2bb586c
commit
017b67d738
@ -100,7 +100,7 @@ func reactPost(c *fiber.Ctx) error {
|
||||
|
||||
var data struct {
|
||||
Symbol string `json:"symbol" form:"symbol" validate:"required"`
|
||||
Attitude models.ReactionAttitude `json:"attitude" form:"attitude" validate:"required"`
|
||||
Attitude models.ReactionAttitude `json:"attitude" form:"attitude"`
|
||||
}
|
||||
|
||||
if err := BindAndValidate(c, &data); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user