debug
parent
fe385cc3e2
commit
1ba51e28d6
|
|
@ -104,7 +104,7 @@ func WixIntegration(c *fiber.Ctx) error {
|
||||||
fmt.Println(data.Data.PlanValidUntil)
|
fmt.Println(data.Data.PlanValidUntil)
|
||||||
fmt.Println(data.Data.PlanTitle)
|
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 {
|
if result.RowsAffected == 0 {
|
||||||
// User does not exist. Inserts it.
|
// User does not exist. Inserts it.
|
||||||
|
|
@ -115,7 +115,7 @@ func WixIntegration(c *fiber.Ctx) error {
|
||||||
Cancelled: "N",
|
Cancelled: "N",
|
||||||
}
|
}
|
||||||
|
|
||||||
database.DB.Create(&user)
|
database.DB.Debug().Create(&user)
|
||||||
}
|
}
|
||||||
|
|
||||||
value, err := strconv.ParseFloat(data.Data.PlanPrice.Value, 32)
|
value, err := strconv.ParseFloat(data.Data.PlanPrice.Value, 32)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue