mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #585 from sharelatex/afc-team-overleaf-id
Add overleaf id to the Subscription (team) schema
This commit is contained in:
commit
10da4fc5f7
1 changed files with 6 additions and 0 deletions
|
@ -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)->
|
||||||
|
|
Loading…
Reference in a new issue