fix:#3 json reverted normal error management

This commit is contained in:
Elmar Kresse
2024-05-26 22:42:18 +02:00
parent 69ca630d0f
commit 1bac9bf187

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, "error", err)
return c.JSON(http.StatusNotFound, err)
} else {
return c.JSON(http.StatusOK, "Feed deleted")
}