main
Nilo Roberto C Paim 2024-05-29 17:06:53 -03:00
parent 8bbedaffde
commit c8e01bf51e
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ import (
"api/database" "api/database"
"api/models" "api/models"
"api/utils" "api/utils"
"fmt"
"log" "log"
"strconv" "strconv"
"strings" "strings"
@ -195,7 +194,7 @@ func Checkuser(c *fiber.Ctx) error {
// Check if user exists // Check if user exists
database.DB.Where("email = ?", email).First(&user) database.DB.Where("email = ?", email).First(&user)
fmt.Printf("User Channel: [%s]\n", user.Channel) log.Printf("User Channel: [%s]\n", user.Channel)
if user.ID == 0 { if user.ID == 0 {
// The user is not found; let's check if it's a test user // The user is not found; let's check if it's a test user