mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-09 02:33:42 +08:00
opt: add lock for mj task callback
This commit is contained in:
@@ -85,7 +85,7 @@ func (h *MidJourneyHandler) Notify(c *gin.Context) {
|
||||
logger.Debugf("收到 MidJourney 回调请求:%+v", data)
|
||||
h.lock.Lock()
|
||||
defer h.lock.Unlock()
|
||||
|
||||
|
||||
// the job is saved
|
||||
var job model.MidJourneyJob
|
||||
res := h.db.Where("message_id = ?", data.MessageId).First(&job)
|
||||
|
||||
Reference in New Issue
Block a user