fix: stream is not deleted actually

This commit is contained in:
Jacky 2024-03-11 22:07:46 +08:00 committed by GitHub
commit 4b277cf3c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -345,6 +345,11 @@ func DeleteStream(c *gin.Context) {
return
}
if err = os.Remove(availablePath); err != nil {
api.ErrHandler(c, err)
return
}
c.JSON(http.StatusOK, gin.H{
"message": "ok",
})