Skip to content

Commit dba35bd

Browse files
author
Nathanael McDaniel
committed
Fix: amount does not exist on InvoiceEvent
1 parent f957b7f commit dba35bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Events implements IEvents {
145145
}
146146

147147
public async invoiceSent(data: InvoiceEvent): Promise<Response> {
148-
const amount = (data.amount / 100) + ' ' + (data.currency || 'USD')
148+
const amount = (data.amount_remaining / 100) + ' ' + (data.currency || 'USD')
149149

150150
const target: GenericMessage = {
151151
message: `:e_mail: **Invoice ${data.id}** (${amount}) was sent to **${data.customer_name}**.`,

0 commit comments

Comments
 (0)