opt: Only create actived upload service

This commit is contained in:
RockYang
2023-09-08 06:46:24 +08:00
parent f7fbaa534d
commit b676f80110
3 changed files with 23 additions and 22 deletions

View File

@@ -100,7 +100,7 @@ func (h *MidJourneyHandler) Notify(c *gin.Context) {
return
}
// download image
imgURL, err := h.uploaderManager.GetActiveService().PutImg(data.Image.URL)
imgURL, err := h.uploaderManager.GetUploadHandler().PutImg(data.Image.URL)
if err != nil {
logger.Error("error with download image: ", err)
resp.SUCCESS(c)