修复添加爬虫后直接运行错误

This commit is contained in:
marvzhang
2019-12-26 12:47:56 +08:00
parent a50141c9a8
commit 59d2d41fe7

View File

@@ -163,6 +163,12 @@ func PutSpider(c *gin.Context) {
return
}
// 同步到GridFS
if err := services.UploadSpiderToGridFsFromMaster(spider); err != nil {
HandleError(http.StatusInternalServerError, c, err)
return
}
c.JSON(http.StatusOK, Response{
Status: "ok",
Message: "success",