Skip to content

Commit fe5ed51

Browse files
authored
Fix: Invoice get (#95)
1 parent 8fa2d2a commit fe5ed51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/hellgate/src/hg_invoice_handler.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ handle_function_('Get', {InvoiceID, #payproc_EventRange{'after' = AfterID, limit
7474
_ = set_invoicing_meta(InvoiceID),
7575
St = get_state(InvoiceID, AfterID, Limit),
7676
get_invoice_state(St);
77+
handle_function_('Get', {InvoiceID, undefined}, _Opts) ->
78+
_ = set_invoicing_meta(InvoiceID),
79+
St = get_state(InvoiceID),
80+
get_invoice_state(St);
7781
handle_function_('GetEvents', {InvoiceID, Range}, _Opts) ->
7882
_ = set_invoicing_meta(InvoiceID),
7983
get_public_history(InvoiceID, Range);

0 commit comments

Comments
 (0)