From 9121a73d4a5ee340f6c9d3b68186493b7d1bf29a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 6 Sep 2022 10:30:03 -0700 Subject: missing imports --- routes/assets.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'routes/assets.js') diff --git a/routes/assets.js b/routes/assets.js index 826ff2d9..22bf71d0 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -238,7 +238,7 @@ app.post("/assets", auth, async (req, res) => { ); emit(user.username, "payment", asset_payment); - issuances[txid] = { + store.issuances[txid] = { user_id, asset, asset_amount: params.asset_amount, @@ -278,14 +278,14 @@ app.post("/assets", auth, async (req, res) => { ); emit(user.username, "payment", token_payment); - issuances[txid].token = token; - issuances[txid].token_amount = token_amount; - issuances[txid].token_payment_id = token_payment.id; + store.issuances[txid].token = token; + store.issuances[txid].token_amount = token_amount; + store.issuances[txid].token_payment_id = token_payment.id; } } }); - res.send(issuances[txid] ? issuances[txid] : { asset }); + res.send(store.issuances[txid] ? store.issuances[txid] : { asset }); } catch (e) { err("asset issuance failed", e.message, e.stack); res.code(500).send(e.message); -- cgit v1.2.3