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

@ -4,9 +4,8 @@ import (
"database/sql"
"errors"
"fmt"
"os"
_ "github.com/lib/pq"
"os"
)
type Card struct {

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) {

View file

@ -1,2 +1,2 @@
DROP USER cardapp;
CREATE USER cardapp WITH PASSWORD '$DB_PASSWORD';
CREATE USER cardapp WITH PASSWORD 'database_password';