From 00b7a5223d493580ba776580ef29d2aeb861ea8c Mon Sep 17 00:00:00 2001 From: Brian De Anda Date: Sun, 2 Aug 2015 21:14:25 -0700 Subject: [PATCH] Remove dep --- app.js | 2 -- models/Event.js | 2 -- models/Students.js | 2 -- package.json | 5 ++--- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app.js b/app.js index d1b9660..5c95514 100644 --- a/app.js +++ b/app.js @@ -1,14 +1,12 @@ var express = require('express'); var app = express(); var mongoose = require('mongoose'); -var autoIncrement = require('mongoose-auto-increment'); var hogan = require('hogan-express'); var username = process.env.USER; var password = process.env.PASSWORD; var mongoURL = "mongodb://" + username + ":" + password + "@ds047632.mongolab.com:47632/csin3students"; var path = require('path'); var connection = mongoose.connect(mongoURL); -autoIncrement.initialize(connection); var router = express.Router(); require('./models/Students'); require('./models/Event'); diff --git a/models/Event.js b/models/Event.js index 08363e3..73e0835 100644 --- a/models/Event.js +++ b/models/Event.js @@ -1,6 +1,5 @@ var mongoose = require('mongoose'); var Schema=mongoose.Schema; -var autoIncrement = require('mongoose-auto-increment'); var eventsSchema = new Schema({ id: Number, @@ -17,6 +16,5 @@ var eventsSchema = new Schema({ isFulltime: Boolean }); -eventsSchema.plugin(autoIncrement.plugin, { model: 'Events', startAt: 1 }); var Events = mongoose.model('Events', eventsSchema); module.exports = Events; diff --git a/models/Students.js b/models/Students.js index 832827c..64a73b4 100644 --- a/models/Students.js +++ b/models/Students.js @@ -1,6 +1,5 @@ var mongoose = require('mongoose'); var Schema=mongoose.Schema; -var autoIncrement = require('mongoose-auto-increment'); var studentsSchema = new Schema({ id: Number, @@ -13,6 +12,5 @@ var studentsSchema = new Schema({ isAlumni: Boolean }); -studentsSchema.plugin(autoIncrement.plugin, { model: 'Students', startAt: 1 }); var Students = mongoose.model('Students', studentsSchema); module.exports = Students; \ No newline at end of file diff --git a/package.json b/package.json index 8c12915..5c98f03 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,7 @@ "debug": "^2.2.0", "express": "^4.13.2", "hogan-express": "^0.5.2", - "mongoose": "^4.0.0", - "mongoose-auto-increment": "^4.0.0" + "mongoose": "^4.0.0" }, - "engine": "node 0.10.32" + "engines": { "node": "0.10.32"} }