Do not fail if invoice does not have a description

This commit is contained in:
Michael Bumann
2022-01-22 21:43:49 +01:00
parent 0de314abbc
commit edd2abedfb
3 changed files with 6 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ func (controller *PayInvoiceController) PayInvoice(c echo.Context) error {
}
c.Logger().Info("%v", decodedPaymentRequest)
invoice, err := controller.svc.AddOutgoingInvoice(userID, paymentRequest, *decodedPaymentRequest)
invoice, err := controller.svc.AddOutgoingInvoice(userID, paymentRequest, decodedPaymentRequest)
if err != nil {
c.Logger().Errorf("Error creating invoice: %v", err)
// TODO: sentry notification