Update Project schema for overleaf imports

This commit is contained in:
James Allen 2017-08-21 17:49:08 +02:00
parent d184c9c555
commit b4254f06ef
4 changed files with 13 additions and 4 deletions

View file

@ -320,7 +320,7 @@ module.exports = (grunt) ->
ext: '.js'
}
config.mochaTest["module_#{module}_unit"] = {
src: ["modules/#{module}/test/unit/js/*.js"]
src: ["modules/#{module}/test/unit/js/**/*.js"]
options:
reporter: grunt.option('reporter') or 'spec'
grep: grunt.option("grep")

View file

@ -33,6 +33,9 @@ ProjectSchema = new Schema
deletedDocs : [DeletedDocSchema]
imageName : { type: String }
track_changes : { type: Object }
overleaf :
id : { type: Number }
imported_at_version : { type: Number }
ProjectSchema.statics.getProject = (project_or_id, fields, callback)->
if project_or_id._id?

View file

@ -3075,6 +3075,11 @@
"from": "passport-local@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz"
},
"passport-oauth2-refresh": {
"version": "1.0.0",
"from": "passport-oauth2-refresh@latest",
"resolved": "https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-1.0.0.tgz"
},
"passport-oauth2": {
"version": "1.4.0",
"from": "passport-oauth2@latest",

View file

@ -50,6 +50,7 @@
"passport-ldapauth": "^0.6.0",
"passport-local": "^1.0.0",
"passport-oauth2": "^1.4.0",
"passport-oauth2-refresh": "^1.0.0",
"passport-saml": "^0.15.0",
"pug": "^2.0.0-beta6",
"redis": "0.10.1",