diff options
| author | Adam Soltys <[email protected]> | 2022-09-02 15:06:43 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-02 15:06:43 -0700 |
| commit | d1cc66d1a02b75f90fbf0c05910777c76228259a (patch) | |
| tree | 7b93dc6a2fc0ec9d03676d6b4093fedf9733f128 /routes/payments.js | |
| parent | 3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 (diff) | |
| download | coinos-server-d1cc66d1a02b75f90fbf0c05910777c76228259a.tar.gz coinos-server-d1cc66d1a02b75f90fbf0c05910777c76228259a.zip | |
es6 migration
Diffstat (limited to 'routes/payments.js')
| -rw-r--r-- | routes/payments.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/routes/payments.js b/routes/payments.js index 6861d2a3..f947350b 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -45,7 +45,7 @@ app.post("/sendToTokenHolders", auth, async (req, res, next) => { app.get("/except", adminAuth, (req, res) => { let s = fs.createWriteStream("exceptions", { flags: "a" }); unaccounted.map(tx => s.write(tx.txid + "\n")); - l.info("updated exceptions"); + l("updated exceptions"); res.send("updated exceptions"); }); @@ -55,7 +55,7 @@ if (config.lna) { app.post("/lightning/invoice", lnRoutes.invoice); app.post("/lightning/query", auth, lnRoutes.query); app.post("/lightning/send", auth, lnRoutes.send); - import("./lightning/receive"); + import("./lightning/receive.js"); } if (config.bitcoin) { @@ -64,7 +64,7 @@ if (config.bitcoin) { app.post("/bitcoin/sweep", auth, btcRoutes.sweep); app.post("/bitcoin/fee", auth, btcRoutes.fee); app.post("/bitcoin/send", auth, btcRoutes.send); - import("./bitcoin/receive"); + import("./bitcoin/receive.js"); setTimeout(async () => { try { @@ -84,7 +84,7 @@ if (config.liquid) { // app.post("/liquid/fee", auth, lqRoutes.fee); app.post("/liquid/send", auth, lqRoutes.send); // app.post("/taxi", auth, lqRoutes.taxi); - import("./liquid/receive"); + import("./liquid/receive.js"); setTimeout(async () => { try { @@ -93,7 +93,7 @@ if (config.liquid) { const parts = hdkeypath.split("/"); app.set("lqAddressIndex", parts[parts.length - 1].slice(0, -1)); } catch (e) { - l.warn("Problem getting liquid address index", e.message); + warn("Problem getting liquid address index", e.message); } }, 50); } |
