Set perform later for SendEInvoiceJob

This commit is contained in:
Sergei Tsõganov 2022-08-29 14:15:57 +03:00
parent 14a9b5b709
commit 77a6f6d985

View file

@ -48,7 +48,7 @@ class SendMonthlyInvoicesJob < ApplicationJob
end end
def send_e_invoice(invoice_id) 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 end
def create_invoice(summary, registrar) def create_invoice(summary, registrar)