diff --git a/services/web/app/coffee/models/Subscription.coffee b/services/web/app/coffee/models/Subscription.coffee index aaf78a4ab2..a9ebb7d585 100644 --- a/services/web/app/coffee/models/Subscription.coffee +++ b/services/web/app/coffee/models/Subscription.coffee @@ -18,6 +18,12 @@ SubscriptionSchema = new Schema downgraded: Boolean planCode: String allowed: {type: Boolean, default: true} + overleaf: + id: + type: Number + index: + unique: true, + partialFilterExpression: {'overleaf.id': {$exists: true}} SubscriptionSchema.statics.findAndModify = (query, update, callback)->