slight pairing fix

pull/4/head
AdamSBlack 2021-10-31 02:24:42 +00:00
parent 1dd752b3b2
commit b383fe5903
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ async function pairDevice(account, qr_string) {
var qrCodeParts = qr_string.split("--");
let deviceQuery;
let pairJWT;
if (qrCodeParts.length > 0) {
if (qrCodeParts.length > 1) {
deviceQuery = await models_orm.models.device.findOne({ where: { serial: qrCodeParts[1] }});
pairJWT = qrCodeParts[2];
} else {