aboutsummaryrefslogtreecommitdiffstats
path: root/lib/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-02 14:47:08 -0700
committerAdam Soltys <[email protected]>2022-09-02 14:47:14 -0700
commit3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 (patch)
tree16cd6c55d5dc481331b1e8b640d179f193e7ea13 /lib/send.js
parent7a8d64833de8873afb92982b3f5bfff59b30c542 (diff)
downloadcoinos-server-3161dd7ee95b6c7d70f8341298dd4fab84cda8b0.tar.gz
coinos-server-3161dd7ee95b6c7d70f8341298dd4fab84cda8b0.zip
es6 migration
Diffstat (limited to 'lib/send.js')
-rw-r--r--lib/send.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/send.js b/lib/send.js
index e30f0c4b..e589ca6b 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -1,8 +1,8 @@
import bolt11 from 'bolt11';
-import { Op } from 'sequelize';
+import { Op } from '@sequelize/core';
import { computeConversionFee, conversionFeeReceiver } from '../routes/lightning/conversionFee.js';
-send = async (amount, memo, hash, user) => {
+export const send = async (amount, memo, hash, user) => {
l.info("attempting lightning payment", user.username, amount, hash);
let payreq = bolt11.decode(hash);