From 69e150979f45b879fcd57afd3a4ef932da780971 Mon Sep 17 00:00:00 2001 From: Redume Date: Thu, 15 Dec 2022 21:14:22 +0300 Subject: [PATCH] delete print to console --- api/controllers/favorite.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/controllers/favorite.go b/api/controllers/favorite.go index 80fca3f..c34dde9 100644 --- a/api/controllers/favorite.go +++ b/api/controllers/favorite.go @@ -2,7 +2,6 @@ package controllers import ( "database/sql" - "fmt" "github.com/Redume/EveryNasa/api/utils" "github.com/Redume/EveryNasa/functions" "github.com/gofiber/fiber/v2" @@ -63,6 +62,7 @@ var GetFavorites = func(c *fiber.Ctx) error { functions.Logger(err.Error()) } }(queryFavorite) + var favorites []Favorite for queryFavorite.Next() { err := queryFavorite.Scan(&title, &explanation, &date, &url, &hdurl, &media_type) @@ -93,8 +93,6 @@ var AddFavorite = func(c *fiber.Ctx) error { hdurl := c.FormValue("hdurl") media_type := c.FormValue("media_type") - fmt.Println(title, explanation, date, url, hdurl, media_type) - if title == "" && explanation == "" && date == "" && url == "" && hdurl == "" && media_type == "" { utils.Respond(c, utils.Message(false, "All fields are required")) return nil