Integration to Requarks Core

This commit is contained in:
NGPixel
2016-11-20 20:09:50 -05:00
parent 6744190859
commit 985761556c
52 changed files with 1129 additions and 1048 deletions

View File

@@ -1,7 +1,6 @@
"use strict";
const modb = require('mongoose'),
Promise = require('bluebird'),
const Promise = require('bluebird'),
bcrypt = require('bcryptjs-then'),
_ = require('lodash');
@@ -10,7 +9,7 @@ const modb = require('mongoose'),
*
* @type {<Mongoose.Schema>}
*/
var userSchema = modb.Schema({
var userSchema = Mongoose.Schema({
email: {
type: String,
@@ -86,4 +85,4 @@ userSchema.methods.validatePassword = function(rawPwd) {
});
};
module.exports = modb.model('User', userSchema);
module.exports = Mongoose.model('User', userSchema);