mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 05:47:28 +00:00
Merge pull request #2447 from a4399518s/main
This commit is contained in:
@@ -74,7 +74,13 @@ func updateVideoSingleTask(ctx context.Context, adaptor channel.TaskAdaptor, cha
|
|||||||
logger.LogError(ctx, fmt.Sprintf("Task %s not found in taskM", taskId))
|
logger.LogError(ctx, fmt.Sprintf("Task %s not found in taskM", taskId))
|
||||||
return fmt.Errorf("task %s not found", taskId)
|
return fmt.Errorf("task %s not found", taskId)
|
||||||
}
|
}
|
||||||
resp, err := adaptor.FetchTask(baseURL, channel.Key, map[string]any{
|
key := channel.Key
|
||||||
|
|
||||||
|
privateData := task.PrivateData
|
||||||
|
if privateData.Key != "" {
|
||||||
|
key = privateData.Key
|
||||||
|
}
|
||||||
|
resp, err := adaptor.FetchTask(baseURL, key, map[string]any{
|
||||||
"task_id": taskId,
|
"task_id": taskId,
|
||||||
"action": task.Action,
|
"action": task.Action,
|
||||||
}, proxy)
|
}, proxy)
|
||||||
|
|||||||
Reference in New Issue
Block a user