re-do unnecessary changes

This commit is contained in:
Chloe Jung 2023-02-24 09:22:17 +13:00
parent 715f01d161
commit f9b52cac13
4 changed files with 5 additions and 7 deletions

View file

@ -50,7 +50,6 @@ func Getboltcard(w http.ResponseWriter, r *http.Request) {
jsonData := []byte(`{"status":"OK",` +
`"uid": "` + c.Db_uid + `",` +
`"last_counter_value": "` + strconv.FormatUint(uint64(c.Last_counter_value), 10) + `",` +
`"lnurlw_enable": "` + c.Lnurlw_enable + `",` +
`"tx_limit_sats": "` + strconv.Itoa(c.Tx_limit_sats) + `",` +
`"day_limit_sats": "` + strconv.Itoa(c.Day_limit_sats) + `"}`)

View file

@ -1,12 +1,12 @@
package internalapi
import (
"net/http"
"strconv"
"github.com/boltcard/boltcard/db"
"github.com/boltcard/boltcard/resp_err"
log "github.com/sirupsen/logrus"
"net/http"
"strconv"
)
func Updateboltcard(w http.ResponseWriter, r *http.Request) {