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'),
_ = require('lodash');
/**
@@ -9,7 +8,7 @@ const modb = require('mongoose'),
*
* @type {<Mongoose.Schema>}
*/
var entrySchema = modb.Schema({
var entrySchema = Mongoose.Schema({
_id: String,
@@ -51,4 +50,4 @@ entrySchema.index({
name: 'EntriesTextIndex'
});
module.exports = modb.model('Entry', entrySchema);
module.exports = Mongoose.model('Entry', entrySchema);