From 243af1fb3944b7050e106df4f95d171d1d921562 Mon Sep 17 00:00:00 2001 From: Kirill Date: Sun, 17 Feb 2019 01:55:13 -0700 Subject: [PATCH] fix --- telegram/handlers/handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram/handlers/handler.js b/telegram/handlers/handler.js index d74dcdb..2b537cd 100644 --- a/telegram/handlers/handler.js +++ b/telegram/handlers/handler.js @@ -38,10 +38,10 @@ function sendTx(ctx) { return ctx.reply("Change", Keyboard.txVariants) } -function scanQr(ctx) { +async function scanQr(ctx) { const key = guid.create().value; utils.client.set(key, JSON.stringify({ - fromAddress: ctx.message.from.id, + fromAddress: (await db.user.find.oneByID(ctx.message.from.id)).ethereumAddress, toNickname: '', }), 'EX', utils.keyLifeTime); return ctx.reply("🔬Scan QR", Keyboard.inlinePay(key));