Add a pause at the e-invoice creation

This commit is contained in:
Alex Sherman 2021-06-07 18:40:56 +05:00
parent c7298cde0c
commit dbda76200d
3 changed files with 16 additions and 2 deletions

View file

@ -105,7 +105,7 @@ class Registrar < ApplicationRecord
.deliver_later(wait: 1.minute)
end
SendEInvoiceJob.perform_now(invoice.id, payable)
SendEInvoiceJob.set(wait: 1.minute).perform_now(invoice.id, payable)
invoice
end