mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
Merge pull request #585 from sharelatex/afc-team-overleaf-id
Add overleaf id to the Subscription (team) schema
This commit is contained in:
@@ -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)->
|
||||
|
||||
Reference in New Issue
Block a user