fix: lp mig: do not quote placeholder

This commit is contained in:
Andrew Jackson (Ajax) 2023-12-01 10:02:37 -06:00
parent 8883ce0117
commit 7c2068bc78

View File

@ -191,7 +191,7 @@ func fromMiner(cctx *cli.Context) (err error) {
if err != nil { if err != nil {
return xerrors.Errorf("Cannot get default config: %w", err) return xerrors.Errorf("Cannot get default config: %w", err)
} }
_, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', '$1')", cfg) _, err = db.Exec(ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', $1)", cfg)
if err != nil { if err != nil {
return err return err