re-do unnecessary changes
This commit is contained in:
parent
715f01d161
commit
f9b52cac13
4 changed files with 5 additions and 7 deletions
3
db/db.go
3
db/db.go
|
|
@ -4,9 +4,8 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
|
||||||
|
|
||||||
_ "github.com/lib/pq"
|
_ "github.com/lib/pq"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Card struct {
|
type Card struct {
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,6 @@ func Getboltcard(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
jsonData := []byte(`{"status":"OK",` +
|
jsonData := []byte(`{"status":"OK",` +
|
||||||
`"uid": "` + c.Db_uid + `",` +
|
`"uid": "` + c.Db_uid + `",` +
|
||||||
`"last_counter_value": "` + strconv.FormatUint(uint64(c.Last_counter_value), 10) + `",` +
|
|
||||||
`"lnurlw_enable": "` + c.Lnurlw_enable + `",` +
|
`"lnurlw_enable": "` + c.Lnurlw_enable + `",` +
|
||||||
`"tx_limit_sats": "` + strconv.Itoa(c.Tx_limit_sats) + `",` +
|
`"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) + `"}`)
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
package internalapi
|
package internalapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"github.com/boltcard/boltcard/db"
|
"github.com/boltcard/boltcard/db"
|
||||||
"github.com/boltcard/boltcard/resp_err"
|
"github.com/boltcard/boltcard/resp_err"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
"net/http"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Updateboltcard(w http.ResponseWriter, r *http.Request) {
|
func Updateboltcard(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
DROP USER cardapp;
|
DROP USER cardapp;
|
||||||
CREATE USER cardapp WITH PASSWORD '$DB_PASSWORD';
|
CREATE USER cardapp WITH PASSWORD 'database_password';
|
||||||
Loading…
Add table
Add a link
Reference in a new issue