Commit 141194c9 authored by Mark Stenglein's avatar Mark Stenglein

Move dataScrapers to a new helpers directory

parent dc9164c3
Pipeline #691 failed with stage
in 1 minute and 5 seconds
...@@ -2,14 +2,14 @@ module.exports = function (sequelize, DataTypes) { ...@@ -2,14 +2,14 @@ module.exports = function (sequelize, DataTypes) {
return sequelize.define('Section', { return sequelize.define('Section', {
// unique index/key // unique index/key
crn: { crn: {
type: DataTypes.STRING, type: DataTypes.STRING
}, },
semester: { semester: {
type: DataTypes.STRING, type: DataTypes.STRING,
references: { references: {
model: 'Semesters', model: 'Semesters',
key : 'slug' key: 'slug'
} }
}, },
......
...@@ -10,7 +10,7 @@ module.exports = function (sequelize, DataTypes) { ...@@ -10,7 +10,7 @@ module.exports = function (sequelize, DataTypes) {
type: DataTypes.STRING, type: DataTypes.STRING,
references: { references: {
model: 'Universities', model: 'Universities',
key : 'slug' key: 'slug'
} }
}, },
......
...@@ -5,7 +5,7 @@ var config = require('config') ...@@ -5,7 +5,7 @@ var config = require('config')
// get configuration for sequelize // get configuration for sequelize
// worth noting that this changes depending on the environment // worth noting that this changes depending on the environment
var sequelizeConf = config.get('sequelize') var sequelizeConf = config.get('sequelize')
sequelizeConf.logging = false; sequelizeConf.logging = false
// make the new connection // make the new connection
var sequelize = new Sequelize(sequelizeConf) var sequelize = new Sequelize(sequelizeConf)
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
"/public/javascripts/bootstrap*.js", "/public/javascripts/bootstrap*.js",
"/public/javascripts/bootstrap/", "/public/javascripts/bootstrap/",
"/public/javascripts/fontawesome.js", "/public/javascripts/fontawesome.js",
"/dataScrapers/" "/helpers/dataScrapers/"
] ]
}, },
"lint-staged": { "lint-staged": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment