diff options
| author | Adam Soltys <[email protected]> | 2022-09-06 10:30:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-06 10:30:03 -0700 |
| commit | 9121a73d4a5ee340f6c9d3b68186493b7d1bf29a (patch) | |
| tree | 8442761c1b8b8afb36be25b831842cbcac1c9c05 /routes/assets.js | |
| parent | c2464b2407ee23134732fd67586758dbfe18f9b5 (diff) | |
| download | coinos-server-9121a73d4a5ee340f6c9d3b68186493b7d1bf29a.tar.gz coinos-server-9121a73d4a5ee340f6c9d3b68186493b7d1bf29a.zip | |
missing imports
Diffstat (limited to 'routes/assets.js')
| -rw-r--r-- | routes/assets.js | 10 |
1 files changed, 5 insertions, 5 deletions
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); |
