debug
parent
8bbedaffde
commit
c8e01bf51e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue