mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-05-06 06:35:24 +00:00
Chore: Converts all call sites and test asserts to use apply_async and headers (#12591)
This commit is contained in:
@@ -253,12 +253,14 @@ def execute_webhook_action(
|
||||
document.mime_type,
|
||||
),
|
||||
}
|
||||
send_webhook.delay(
|
||||
url=action.webhook.url,
|
||||
data=data,
|
||||
headers=headers,
|
||||
files=files,
|
||||
as_json=action.webhook.as_json,
|
||||
send_webhook.apply_async(
|
||||
kwargs={
|
||||
"url": action.webhook.url,
|
||||
"data": data,
|
||||
"headers": headers,
|
||||
"files": files,
|
||||
"as_json": action.webhook.as_json,
|
||||
},
|
||||
)
|
||||
logger.debug(
|
||||
f"Webhook to {action.webhook.url} queued",
|
||||
|
||||
Reference in New Issue
Block a user