diff --git a/app/models/bid.js b/app/models/bid.js index 34fe4ab..d5f8949 100644 --- a/app/models/bid.js +++ b/app/models/bid.js @@ -4,11 +4,12 @@ var Mongo = require('mongodb'), async = require('async'); function Bid(o){ - this.itemUpForBidId = o.itemUpForBidId; - this.itemOfferedId = o.itemOfferedId; - this.upForBidOwnerId = o.upForBidOwnerId; - this.offerOwnerId = o.offerOwnerId; + this.itemUpForBidId = Mongo.ObjectID(o.itemUpForBidId); + this.itemOfferedId = Mongo.ObjectID(o.itemOfferedId); + this.upForBidOwnerId = Mongo.ObjectID(o.upForBidOwnerId); + this.offerOwnerId = Mongo.ObjectID(o.offerOwnerId); this.isOpen = true; + this.bidDate = new Date(); } Object.defineProperty(Bid, 'collection', { diff --git a/app/static/favicon.ico b/app/static/favicon.ico index 895fc96..f05b2b1 100644 Binary files a/app/static/favicon.ico and b/app/static/favicon.ico differ