mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Improve topup tests
This commit is contained in:
parent
b3fd31f679
commit
58079c6955
2 changed files with 28 additions and 8 deletions
|
@ -99,12 +99,13 @@ class Registrar < ApplicationRecord
|
|||
}
|
||||
]
|
||||
)
|
||||
SendEInvoiceJob.enqueue(invoice.id, payable: payable)
|
||||
|
||||
unless payable
|
||||
InvoiceMailer.invoice_email(invoice: invoice, recipient: billing_email).deliver_now
|
||||
end
|
||||
|
||||
SendEInvoiceJob.enqueue(invoice.id, payable: payable)
|
||||
|
||||
invoice
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue