fix:#3 fixed linter warnings for slog

This commit is contained in:
Elmar Kresse
2024-05-26 22:40:35 +02:00
parent 114a309e8b
commit a1beeee54e
16 changed files with 163 additions and 42 deletions

View File

@@ -92,7 +92,7 @@ func addFeedRoutes(app *pocketbase.PocketBase) {
token := c.QueryParam("token")
err := db.DeleteFeed(app.Dao(), token)
if err != nil {
return c.JSON(http.StatusNotFound, err)
return c.JSON(http.StatusNotFound, "error", err)
} else {
return c.JSON(http.StatusOK, "Feed deleted")
}