mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
修复添加爬虫后直接运行错误
This commit is contained in:
@@ -163,6 +163,12 @@ func PutSpider(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 同步到GridFS
|
||||||
|
if err := services.UploadSpiderToGridFsFromMaster(spider); err != nil {
|
||||||
|
HandleError(http.StatusInternalServerError, c, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.JSON(http.StatusOK, Response{
|
c.JSON(http.StatusOK, Response{
|
||||||
Status: "ok",
|
Status: "ok",
|
||||||
Message: "success",
|
Message: "success",
|
||||||
|
|||||||
Reference in New Issue
Block a user