- Tweaks
This commit is contained in:
@@ -131,5 +131,9 @@ ItemSchema.statics.addBatch = function(data = [], callback = () => {}) {
|
||||
|
||||
};
|
||||
|
||||
ItemSchema.statics.getAuctionItemsByEvent = function(eventId, callback = () => {}) {
|
||||
return this.find({ eventId, type: 'auction' }, callback);
|
||||
};
|
||||
|
||||
const Item = mongoose.model('Item', ItemSchema);
|
||||
module.exports = Item;
|
||||
|
||||
Reference in New Issue
Block a user