mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-25 09:16:21 +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 (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
|
||||||
"github.com/Redume/EveryNasa/api/utils"
|
"github.com/Redume/EveryNasa/api/utils"
|
||||||
"github.com/Redume/EveryNasa/functions"
|
"github.com/Redume/EveryNasa/functions"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
|
@ -63,6 +62,7 @@ var GetFavorites = func(c *fiber.Ctx) error {
|
||||||
functions.Logger(err.Error())
|
functions.Logger(err.Error())
|
||||||
}
|
}
|
||||||
}(queryFavorite)
|
}(queryFavorite)
|
||||||
|
|
||||||
var favorites []Favorite
|
var favorites []Favorite
|
||||||
for queryFavorite.Next() {
|
for queryFavorite.Next() {
|
||||||
err := queryFavorite.Scan(&title, &explanation, &date, &url, &hdurl, &media_type)
|
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")
|
hdurl := c.FormValue("hdurl")
|
||||||
media_type := c.FormValue("media_type")
|
media_type := c.FormValue("media_type")
|
||||||
|
|
||||||
fmt.Println(title, explanation, date, url, hdurl, media_type)
|
|
||||||
|
|
||||||
if 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"))
|
utils.Respond(c, utils.Message(false, "All fields are required"))
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue