When returning boltcard data through api, send pin_enable and pin_limit_sats values as well

This commit is contained in:
Chloe Jung 2023-07-17 11:59:07 +12:00
parent 3d9e742dc1
commit 6609558f96
2 changed files with 7 additions and 3 deletions

View file

@ -37,7 +37,9 @@ func Getboltcard(w http.ResponseWriter, r *http.Request) {
`"uid": "` + c.Db_uid + `",` +
`"lnurlw_enable": "` + c.Lnurlw_enable + `",` +
`"tx_limit_sats": "` + strconv.Itoa(c.Tx_limit_sats) + `",` +
`"day_limit_sats": "` + strconv.Itoa(c.Day_limit_sats) + `"}`)
`"day_limit_sats": "` + strconv.Itoa(c.Day_limit_sats) + `", ` +
`"pin_enable": "` + strconv.Itoa(c.Pin_enable) + `", ` +
`"pin_limit_sats": "` + strconv.Itoa(c.Pin_limit_sats) + `"}`)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)