diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/parse.ts | 1 | ||||
| -rw-r--r-- | src/routes/(app)/ecash/mint/+server.ts | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts index 03cd0c3d..663b2e42 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -73,7 +73,6 @@ export default async (s, host, cookies) => { } else if (t.toLowerCase().startsWith("ln")) { try { invoice = await get(`/invoice/${t}`); - if (invoice.user.username === "mint") throw new Error("mint payment"); } catch (e) { if (t.toLowerCase().startsWith("lno")) { const { offer_amount_msat: a } = await get(`/decode/${t}`); diff --git a/src/routes/(app)/ecash/mint/+server.ts b/src/routes/(app)/ecash/mint/+server.ts deleted file mode 100644 index 02170650..00000000 --- a/src/routes/(app)/ecash/mint/+server.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { auth, post } from "$lib/utils"; -import { json } from "@sveltejs/kit"; - -export async function POST({ cookies, request }) { - const result = await post("/mint", await request.json(), auth(cookies)); - return json(result); -} |
