diff options
| author | Adam Soltys <[email protected]> | 2022-09-02 14:47:08 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-02 14:47:14 -0700 |
| commit | 3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 (patch) | |
| tree | 16cd6c55d5dc481331b1e8b640d179f193e7ea13 /routes/lightning/query.js | |
| parent | 7a8d64833de8873afb92982b3f5bfff59b30c542 (diff) | |
| download | coinos-server-3161dd7ee95b6c7d70f8341298dd4fab84cda8b0.tar.gz coinos-server-3161dd7ee95b6c7d70f8341298dd4fab84cda8b0.zip | |
es6 migration
Diffstat (limited to 'routes/lightning/query.js')
| -rw-r--r-- | routes/lightning/query.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/lightning/query.js b/routes/lightning/query.js index 0d034604..36c297f6 100644 --- a/routes/lightning/query.js +++ b/routes/lightning/query.js @@ -1,17 +1,17 @@ -export default ah(async (req, res) => { +export default async (req, res) => { const { payreq } = req.body; const invoice = await db.Invoice.findOne({ include: { - attributes: ['username'], + attributes: ["username"], model: db.User, as: "user" }, where: { - text: payreq, + text: payreq } }); if (invoice) emit(req.user.username, "to", invoice.user); res.end(); -}); +}; |
