mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-10 13:43:49 +02:00
feat:#44 updated delete process and api response
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/pocketbase/pocketbase"
|
||||
"github.com/pocketbase/pocketbase/apis"
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"htwkalender/data-manager/service/db"
|
||||
"htwkalender/data-manager/service/feed"
|
||||
"htwkalender/data-manager/service/ical"
|
||||
"io"
|
||||
"log/slog"
|
||||
@@ -58,7 +58,7 @@ func addFeedRoutes(app *pocketbase.PocketBase) {
|
||||
Path: "/api/feed",
|
||||
Handler: func(c echo.Context) error {
|
||||
token := c.QueryParam("token")
|
||||
err := db.DeleteFeed(app.Dao(), token)
|
||||
err := feed.MarkFeedForDeletion(app.Dao(), token)
|
||||
if err != nil {
|
||||
return c.JSON(http.StatusNotFound, err)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user