main
Nilo Roberto C Paim 2023-10-22 07:24:39 -03:00
parent fe385cc3e2
commit 1ba51e28d6
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ func WixIntegration(c *fiber.Ctx) error {
fmt.Println(data.Data.PlanValidUntil)
fmt.Println(data.Data.PlanTitle)
result := database.DB.Where("email = ?", data.Data.Contact.Email).First(&data)
result := database.DB.Debug().Where("email = ?", data.Data.Contact.Email).First(&data)
if result.RowsAffected == 0 {
// User does not exist. Inserts it.
@ -115,7 +115,7 @@ func WixIntegration(c *fiber.Ctx) error {
Cancelled: "N",
}
database.DB.Create(&user)
database.DB.Debug().Create(&user)
}
value, err := strconv.ParseFloat(data.Data.PlanPrice.Value, 32)