From 2627bf3034b75eecf63afaad9b2ed57680220c35 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 28 Sep 2023 19:16:17 +0300 Subject: [PATCH] fix: comments in TagsDelete --- api/tags.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/tags.go b/api/tags.go index 9fcd168..c2ad690 100644 --- a/api/tags.go +++ b/api/tags.go @@ -53,8 +53,8 @@ type postTagsDelete struct { func TagsDelete(c *gin.Context) { data := &postTagsDelete{} if err := c.Bind(data); err != nil { - log.Printf("[tixe/api] ERROR: Could not bind new tag data: %v", err) - c.String(http.StatusBadRequest, "Could not bind new tag data") + log.Printf("[tixe/api] ERROR: Could not bind delete tag data: %v", err) + c.String(http.StatusBadRequest, "Could not bind delete tag data") return; } @@ -64,8 +64,8 @@ func TagsDelete(c *gin.Context) { _, err := db.PgPool.Exec(context.Background(), "DELETE FROM tags WHERE id = $1 AND user_id = $2", data.Id, user.Id) if err != nil { - log.Printf("[tixe/api] ERROR: Could not create new tag entry in database: %v", err) - c.String(http.StatusInternalServerError, "Could not create new tag entry in database!") + log.Printf("[tixe/api] ERROR: Could not delete tag entry from database: %v", err) + c.String(http.StatusInternalServerError, "Could not delete tag entry from database!") return; } -- 2.44.1