Просмотр исходного кода

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

Add overleaf id to the Subscription (team) schema
Alberto Fernández-Capel 8 лет назад
Родитель
Сommit
10da4fc5f7
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      services/web/app/coffee/models/Subscription.coffee

+ 6 - 0
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)->