소스 검색

fix: stream is not deleted actually

Jacky 1 년 전
부모
커밋
4b277cf3c1
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      api/streams/streams.go

+ 5 - 0
api/streams/streams.go

@@ -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",
 	})