Merge pull request #585 from sharelatex/afc-team-overleaf-id

Add overleaf id to the Subscription (team) schema
This commit is contained in:
Alberto Fernández-Capel 2018-06-08 11:27:15 +01:00 committed by GitHub
commit 10da4fc5f7

View file

@ -18,6 +18,12 @@ SubscriptionSchema = new Schema
downgraded: Boolean downgraded: Boolean
planCode: String planCode: String
allowed: {type: Boolean, default: true} allowed: {type: Boolean, default: true}
overleaf:
id:
type: Number
index:
unique: true,
partialFilterExpression: {'overleaf.id': {$exists: true}}
SubscriptionSchema.statics.findAndModify = (query, update, callback)-> SubscriptionSchema.statics.findAndModify = (query, update, callback)->