diff options
| author | Adam Soltys <[email protected]> | 2022-09-07 13:29:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-07 13:29:30 -0700 |
| commit | 3e11c9e4aa3618e58af413c98d6992ae18d444f7 (patch) | |
| tree | b5ff453effe14fcec4e988d02c9a9362875502b0 /routes | |
| parent | 06b59b585ac9af7be106b9c1271d251ba20f6630 (diff) | |
| download | coinos-server-3e11c9e4aa3618e58af413c98d6992ae18d444f7.tar.gz coinos-server-3e11c9e4aa3618e58af413c98d6992ae18d444f7.zip | |
prettier
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.js | 13 | ||||
| -rw-r--r-- | routes/referrals.js | 10 |
2 files changed, 12 insertions, 11 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index 1cf5e319..54b82ade 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -1,16 +1,19 @@ -import { emit } from "$lib/sockets"; -import store from "$lib/store"; import app from "$app"; import config from "$config"; +import store from "$lib/store"; +import { optionalAuth, auth } from "$lib/passport"; + +import lnd from "$lib/lnd"; +import persist from "$lib/persist"; +import { emit } from "$lib/sockets"; + import axios from "axios"; import lnurl from "lnurl"; import jwt from "jsonwebtoken"; import qs from "query-string"; -import persist from "$lib/persist"; import bolt11 from "bolt11"; -import { optionalAuth, auth } from "$lib/passport"; + import { createInvoice, getPayments } from "lightning"; -import lnd from "$lib/lnd"; export const logins = persist("data/logins.json"); export const recipients = persist("data/recipients.json"); diff --git a/routes/referrals.js b/routes/referrals.js index b3d53306..7193964d 100644 --- a/routes/referrals.js +++ b/routes/referrals.js @@ -180,12 +180,10 @@ router.get("/verify/:user_id/:token", auth, async (req, res) => { updated: found.updated_at }); } else { - res - .code(500) - .send({ - verified: false, - message: "Referral already " + found[0].status - }); + res.code(500).send({ + verified: false, + message: "Referral already " + found[0].status + }); } } else { res.code(500).send("Invalid referral token"); |
