Merge pull request #594 from sharelatex/ja-include-token-in-project-schema

Include OL tokens in project schema
This commit is contained in:
James Allen 2017-09-15 11:41:24 +02:00 committed by GitHub
commit adf211a226

View file

@ -36,6 +36,8 @@ ProjectSchema = new Schema
overleaf : overleaf :
id : { type: Number } id : { type: Number }
imported_at_ver_id : { type: Number } imported_at_ver_id : { type: Number }
token : { type: String }
read_token : { type: String }
ProjectSchema.statics.getProject = (project_or_id, fields, callback)-> ProjectSchema.statics.getProject = (project_or_id, fields, callback)->
if project_or_id._id? if project_or_id._id?