fixing missing ticker

This commit is contained in:
Chris Troutner
2022-10-02 14:03:27 -07:00
parent 3482540fc8
commit 6f99b215cd
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const Offer = new mongoose.Schema({
tokenId: { type: String },
utxoTxid: { type: String },
utxoVout: { type: Number },
ticker: { type: String },
ticker: { type: String, default: '' },
tokenType: { type: Number },
// Trade data
+2 -2
View File
@@ -29,7 +29,7 @@ class OfferEntity {
utxoVout,
offerStatus,
makerAddr,
// ticker,
ticker,
tokenType
} = offerData.data
@@ -95,7 +95,7 @@ class OfferEntity {
p2wdbHash: offerData.hash,
offerStatus: offerStatus || this.offerStatus[0],
makerAddr,
// ticker,
ticker,
tokenType
}
+2 -2
View File
@@ -1,6 +1,6 @@
import mongoose from 'mongoose'
import config from '../../config'
import Order from '../../src/adapters/localdb/models/order'
import config from '../../config/index.js'
import Order from '../../src/adapters/localdb/models/order.js'
async function getOrder () {
// Connect to the Mongo Database.