Skip to content
Snippets Groups Projects
Commit 78ce3346 authored by Guillaume Vagner's avatar Guillaume Vagner
Browse files

change addr and remove models

parent d71b7466
Branches
No related tags found
No related merge requests found
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
......@@ -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}/`);
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment