diff --git a/models/Channel.js b/models/Channel.js deleted file mode 100644 index e2f569b871826d76fd0ec511e851bda198a9f35b..0000000000000000000000000000000000000000 --- 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 005b95c3fe47d56808e19a58546afd880d565474..bc608cbcd699d48caea40658ff180c3e015d06dd 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}/`); })