From 78ce33463b0e1dca92767b6f671f24d34b7af6cf Mon Sep 17 00:00:00 2001 From: Guillaume Vagner <guillaume.vagner@supelec.fr> Date: Thu, 21 Feb 2019 01:02:55 +0100 Subject: [PATCH] change addr and remove models --- models/Channel.js | 14 -------------- website.js | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 models/Channel.js diff --git a/models/Channel.js b/models/Channel.js deleted file mode 100644 index e2f569b..0000000 --- a/models/Channel.js +++ /dev/null @@ -1,14 +0,0 @@ -const mongoose = require('../mongoose'); - -const channelSchema = new mongoose.Schema({ - token: String, - refresh: String, - expiration: Date, - username: String, - chatId: Number, - state: String, - groups: [Number], - scheduleTime: { type: String, validate: /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/ } -}) - -module.exports = mongoose.model('Channel', channelSchema); \ No newline at end of file diff --git a/website.js b/website.js index 005b95c..bc608cb 100644 --- a/website.js +++ b/website.js @@ -10,7 +10,7 @@ var { modifyChan, getChanByState } = require('./connection-db'); const config = require('./config'); -app.listen(80, config.website.hostname, () => { +app.listen(80, '127.0.0.1', () => { console.log(`[express] Website is up and accessible on ${config.website.protocol}://${config.website.hostname}/`); }) -- GitLab