fix submission archived webhook
This commit is contained in:
@@ -29,9 +29,9 @@ class SendSubmissionArchivedWebhookRequestJob < ApplicationJob
|
|||||||
end
|
end
|
||||||
|
|
||||||
if (resp.nil? || resp.status.to_i >= 400) && attempt <= MAX_ATTEMPTS &&
|
if (resp.nil? || resp.status.to_i >= 400) && attempt <= MAX_ATTEMPTS &&
|
||||||
(!Docuseal.multitenant? || submitter.account.account_configs.exists?(key: :plan))
|
(!Docuseal.multitenant? || submission.account.account_configs.exists?(key: :plan))
|
||||||
SendSubmissionArchivedWebhookRequestJob.set(wait: (2**attempt).minutes)
|
SendSubmissionArchivedWebhookRequestJob.set(wait: (2**attempt).minutes)
|
||||||
.perform_later(submitter, {
|
.perform_later(submission, {
|
||||||
attempt: attempt + 1,
|
attempt: attempt + 1,
|
||||||
last_status: resp&.status.to_i
|
last_status: resp&.status.to_i
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user