From 86f2bd1b0af47d84a03bdcc69a98c415cf4d8289 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 12 Jun 2020 10:18:53 -0700 Subject: [PATCH] x --- api/utils/timers.ts | 2 ++ dist/api/utils/timers.js | 2 ++ dist/api/utils/timers.js.map | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/utils/timers.ts b/api/utils/timers.ts index bb729e1..05d1db2 100644 --- a/api/utils/timers.ts +++ b/api/utils/timers.ts @@ -26,8 +26,10 @@ export async function reloadTimers(){ }) } export async function payBack(t){ + console.log("PAY BACK") const contact = await models.Contact.findOne({where:{id:t.receiver}}) if(contact){ + console.log("SEND ",t.amount,"TO",contact.publicKey) network.signAndSend({ amt: t.amount, dest: contact.publicKey, diff --git a/dist/api/utils/timers.js b/dist/api/utils/timers.js index 373f8a5..df00729 100644 --- a/dist/api/utils/timers.js +++ b/dist/api/utils/timers.js @@ -46,8 +46,10 @@ function reloadTimers() { exports.reloadTimers = reloadTimers; function payBack(t) { return __awaiter(this, void 0, void 0, function* () { + console.log("PAY BACK"); const contact = yield models_1.models.Contact.findOne({ where: { id: t.receiver } }); if (contact) { + console.log("SEND ", t.amount, "TO", contact.publicKey); network.signAndSend({ amt: t.amount, dest: contact.publicKey, diff --git a/dist/api/utils/timers.js.map b/dist/api/utils/timers.js.map index 54a211b..ea9a3d9 100644 --- a/dist/api/utils/timers.js.map +++ b/dist/api/utils/timers.js.map @@ -1 +1 @@ -{"version":3,"file":"timers.js","sourceRoot":"","sources":["../../../api/utils/timers.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,sCAAqC;AAErC,SAAsB,QAAQ,CAAC,EAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAC;;QACrD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;QAChC,MAAM,IAAI,GAAG,GAAG,GAAG,MAAM,CAAA;QACzB,MAAM,CAAC,GAAG,MAA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