Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bumi committed Dec 29, 2023
1 parent 6ac8eff commit 168d49a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service/invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func (svc *LndhubService) AddRoutingFeeEntry(ctx context.Context, entry *models.
// if there was no fee reserve then this is an internal payment
// and no fee entry is needed
// if there is a fee reserve then we must use the same account id's
lnFeeEntry := models.TransactionEntry{
routingFeeEntry := models.TransactionEntry{
UserID: invoice.UserID,
InvoiceID: invoice.ID,
CreditAccountID: entry.FeeReserve.CreditAccountID,
Expand All @@ -417,7 +417,7 @@ func (svc *LndhubService) AddRoutingFeeEntry(ctx context.Context, entry *models.
ParentID: entry.ID,
EntryType: models.EntryTypeFee,
}
_, err = tx.NewInsert().Model(&lnFeeEntry).Exec(ctx)
_, err = tx.NewInsert().Model(&routingFeeEntry).Exec(ctx)
return err
}
return nil
Expand Down

0 comments on commit 168d49a

Please sign in to comment.