From 3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 14:47:08 -0700 Subject: es6 migration --- routes/send.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'routes/send.js') diff --git a/routes/send.js b/routes/send.js index c6de3acb..7cc403e1 100644 --- a/routes/send.js +++ b/routes/send.js @@ -1,7 +1,10 @@ -import axios from 'axios'; -import { v4 as uuidv4 } from 'uuid'; +import { callWebhook } from "../lib/webhooks.js"; +import axios from "axios"; +import { v4 as uuidv4 } from "uuid"; +import { notify } from "../lib/notifications.js"; +import { sendLiquid } from "./liquid/send.js"; -export default ah(async (req, res, next) => { +export default async (req, res, next) => { let { amount, address, @@ -212,4 +215,4 @@ export default ah(async (req, res, next) => { l.error("problem sending internal payment", user.username, e.message); return res.status(500).send(e.message); } -}); +}; -- cgit v1.2.3