Skip to content

Commit

Permalink
added tag for payment history
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Sep 10, 2024
1 parent b20b63c commit 09596cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions db/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ type PaymentHistory struct {
OrgUuid string `json:"org_uuid"`
SenderPubKey string `json:"sender_pubkey"`
ReceiverPubKey string `json:"receiver_pubkey"`
Tag string `json:"tag,omitempty"`
PaymentStatus string `json:"payment_status,omitempty"`
Created *time.Time `json:"created"`
Updated *time.Time `json:"updated"`
Status bool `json:"status"`
Expand Down
4 changes: 0 additions & 4 deletions handlers/tribes.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,14 +681,10 @@ func (th *tribeHandler) GenerateV2BudgetInvoice(w http.ResponseWriter, r *http.R

url := fmt.Sprintf("%s/invoice", config.V2BotUrl)

fmt.Println("BOT URL ====", url)

amountMsat := invoice.Amount * 1000

bodyData := fmt.Sprintf(`{"amt_msat": %d}`, amountMsat)

fmt.Println("Invoice BODY DATA ===", bodyData)

jsonBody := []byte(bodyData)

client := &http.Client{}
Expand Down

0 comments on commit 09596cd

Please sign in to comment.