From ba7717bf9fa8e72da41cef88b096bc68ea8371a3 Mon Sep 17 00:00:00 2001 From: Roman Storm Date: Mon, 16 Dec 2019 15:48:51 -0800 Subject: [PATCH] fix bug for refunds --- src/relayController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/relayController.js b/src/relayController.js index e5eca79..c68f96f 100644 --- a/src/relayController.js +++ b/src/relayController.js @@ -61,7 +61,7 @@ async function relayController(req, resp) { await redisClient.set('foo', 'bar') requestJob = await withdrawQueue.add({ - contract, nullifierHash, root, proof, args, currency, amount, fee: fee.toString() + contract, nullifierHash, root, proof, args, currency, amount, fee: fee.toString(), refund }, { removeOnComplete: true }) reponseCbs[requestJob.id] = resp } @@ -70,7 +70,7 @@ withdrawQueue.process(async function(job, done){ console.log(Date.now(), ' withdraw started', job.id) const gasPrices = fetcher.gasPrices const { contract, nullifierHash, root, proof, args, refund, currency, amount, fee } = job.data - // cb() + console.log(JSON.stringify(job.data)) // job.data contains the custom data passed when the job was created // job.id contains id of this job. try {