changes on Pub_Start

main
nilo 2024-11-06 18:52:27 -03:00
parent 9320344445
commit 28058c9432
2 changed files with 1 additions and 9 deletions

View File

@ -221,14 +221,6 @@ func Checkuser(c *fiber.Ctx) error {
if user.ID == 0 {
// The user is not found, so it's an eligible tester; let's signalize this
response.Type = "T"
// // Insert the user in the database
// u := models.User{
// Email: email,
// UserType: "T",
// TestStatus: "TS", // Awaiting test done
// }
// database.DB.Create(&u)
} else {
// The user is found and it's an admin; let's signalize this
if user.UserType == "A" {

View File

@ -73,7 +73,7 @@ func OnPubStart(c *fiber.Ctx) error {
if err := c.BodyParser(p); err != nil {
return err
}
log.Printf("Start %s\n", p.Channel)
log.Printf("Start channel %s, urlParam %s, AppName %s\n", p.Channel, p.UrlParam, p.AppName)
return c.SendString("On_Pub_Start: " + string(c.Body()))
}