Skip to content

Commit

Permalink
Merge 52aad9d into 8b978bc
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano-aguero committed Jan 4, 2019
2 parents 8b978bc + 52aad9d commit 9b58e50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/subscriber/subscriber.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,9 @@ SubscriberSchema.statics = {
/**
* @typedef Subscriber
*/
module.exports = mongoose.model('Subscriber', SubscriberSchema)
const subscriber = mongoose.model('Subscriber', SubscriberSchema)

// Dropping an old Index in MongoDB
subscriber.collection.dropIndex('email_1', function(err, result) {})

module.exports = subscriber

0 comments on commit 9b58e50

Please sign in to comment.