From 8d435a3cbc56d244d5595d73bc75a6338e826e17 Mon Sep 17 00:00:00 2001 From: AdamSBlack Date: Sun, 31 Oct 2021 02:28:54 +0000 Subject: [PATCH] e --- controllers/devices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/devices.js b/controllers/devices.js index 759f0bb..83daf31 100644 --- a/controllers/devices.js +++ b/controllers/devices.js @@ -18,7 +18,7 @@ async function pairDevice(account, qr_string) { pairJWT = qrCodeParts[2]; } else { pairJWT = qr_string; - const data = authenticationController.readJWT(qr_string); + const data = await authenticationController.readJWT(qr_string); deviceQuery = await models_orm.models.device.findOne({ where: { dongle_id: data.identiy }}); }