diff --git a/lib/router.transfer.js b/lib/router.transfer.js index 053159899..eab5b020f 100644 --- a/lib/router.transfer.js +++ b/lib/router.transfer.js @@ -24,10 +24,10 @@ module.exports = function (app) { } } - function requestTransfer(req, res) { + async function requestTransfer(req, res) { if (!Util.validateSession(req)) return res.status(401).end(); let owner = sanitka.owner(req.session.owner); - transfer.request(owner, req.body, (success, response) => { + await transfer.request(owner, req.body, (success, response) => { transferResultRedirect(success, res, response); }); } diff --git a/lib/thinx/transfer.js b/lib/thinx/transfer.js index 98439a7a8..2c5023c39 100644 --- a/lib/thinx/transfer.js +++ b/lib/thinx/transfer.js @@ -266,7 +266,7 @@ module.exports = class Transfer { sendRecipientTransferEmail(body, transfer_uuid) { - if (!Util.isDefined(body.udids)) { console.log("[error] [sendRecipientTransferEmail] missing body.udids"); return } + if (!Util.isDefined(body.udids)) { console.log("[error] [sendRecipientTransferEmail] missing body.udids"); return; } var htmlDeviceList = "