Fixed merge conflicts

This commit is contained in:
Fergal Moran
2014-03-20 20:22:09 +00:00
2 changed files with 40 additions and 45 deletions

View File

@@ -13,9 +13,4 @@ var PromotionSchema = new Schema({
/* Indexes */
PromotionSchema.index({title: 1, user: 1}, {unique: true});
/* Operations */
PromotionSchema.statics.findByTitle = function(title, cb){
this.findOne({title: title}, cb);
};
mongoose.model('Promotion', PromotionSchema);