fix
This commit is contained in:
parent
8df47bb0af
commit
ecc08fabdb
4
job.go
4
job.go
@ -1536,13 +1536,13 @@ func jobGWithdraw(j Job) {
|
|||||||
FromChatID64: cwm.Msg.ChatID64,
|
FromChatID64: cwm.Msg.ChatID64,
|
||||||
}
|
}
|
||||||
TGCmdQueue <- cmd
|
TGCmdQueue <- cmd
|
||||||
p.CleanupMsg = append(p.CleanupMsg, m)
|
p.CleanupMsg = append(p.CleanupMsg, *m)
|
||||||
b, err := json.Marshal(p)
|
b, err := json.Marshal(p)
|
||||||
err = setJobPayload(j.ID64, b)
|
err = setJobPayload(j.ID64, b)
|
||||||
logOnError(err, "jobGWithdraw : setJobPayload")
|
logOnError(err, "jobGWithdraw : setJobPayload")
|
||||||
err = rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
|
err = rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC())
|
||||||
logOnError(err, "jobGWithdraw : rescheduleJob")
|
logOnError(err, "jobGWithdraw : rescheduleJob")
|
||||||
setJobCallback(j.ID64, int64(bot.Me.ID), cacheObjTypeId[`msg_job_gwithdraw_ack`])
|
setJobCallback(j.ID64, int64(bot.Me.ID), cacheObjSubType[`msg_job_gwithdraw_ack`])
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
p.Validated = true
|
p.Validated = true
|
||||||
|
Loading…
Reference in New Issue
Block a user