- Added some school methods but will need to refactor the model calls

This commit is contained in:
Alexis
2020-06-06 23:35:11 +02:00
parent 3dbb95ab4d
commit ce9018f65e
6 changed files with 309 additions and 228 deletions

View File

@@ -20,17 +20,4 @@ const knex = require('knex')({
})
const bookshelf = require('bookshelf')(knex)
const db = mysql.createConnection({
host: credentials.host,
user: credentials.user,
password: credentials.password,
database: credentials.database,
})
db.on('error', err => {
if (err.errno == 'ECONNRESET') {
console.log("The connection was reset during your request. Please try again later.");
}
})
module.exports = { db, bookshelf }
module.exports = { bookshelf }