Skip to content

Commit

Permalink
It would help if we deleted the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Feb 17, 2024
1 parent 60a875c commit 9e065f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/views/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ func (v *Views) DeleteFunc(c echo.Context) error {
return c.String(http.StatusOK, "REJECTED!")
}

err = v.store.DeleteStream(unique)
if err != nil {
log.Printf("failed to delete stored: %+v, unique: %s", err, unique)
return c.String(http.StatusOK, "REJECTED!")
}

log.Printf("deleted stored: %s", unique)
return c.String(http.StatusOK, "DELETED!")
}
Expand Down

0 comments on commit 9e065f9

Please sign in to comment.