From 77a6f6d9855972c1cd23e24f39ce99ffee12d96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergei=20Ts=C3=B5ganov?= Date: Mon, 29 Aug 2022 14:15:57 +0300 Subject: [PATCH] Set perform later for SendEInvoiceJob --- app/jobs/send_monthly_invoices_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/send_monthly_invoices_job.rb b/app/jobs/send_monthly_invoices_job.rb index 78f35ad1f..647bd0752 100644 --- a/app/jobs/send_monthly_invoices_job.rb +++ b/app/jobs/send_monthly_invoices_job.rb @@ -48,7 +48,7 @@ class SendMonthlyInvoicesJob < ApplicationJob end def send_e_invoice(invoice_id) - SendEInvoiceJob.set(wait: 1.minute).perform_now(invoice_id, payable: false) + SendEInvoiceJob.set(wait: 1.minute).perform_later(invoice_id, payable: false) end def create_invoice(summary, registrar)