fix: replace nil ctx to context.Background

This commit is contained in:
krau
2026-08-17 19:12:23 +08:00
parent c2f8ab3c01
commit 75d83b0a3e
+2 -1
View File
@@ -1,6 +1,7 @@
package api package api
import ( import (
"context"
"sync" "sync"
"time" "time"
@@ -195,6 +196,6 @@ func (t *TaskProgressInfo) Emit(e taskevent.Event) {
if notify { if notify {
payload := CreateWebhookPayload(t.TaskID, t.Type, t.Status, t.Storage, t.Path, e.Err) payload := CreateWebhookPayload(t.TaskID, t.Type, t.Status, t.Storage, t.Path, e.Err)
SendWebhook(nil, payload) SendWebhook(context.Background(), payload)
} }
} }