mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-05 06:03:57 +03:00
delete print to console
This commit is contained in:
parent
a1cd1f74ee
commit
69e150979f
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue