Skip to content

Commit

Permalink
Fixed some bugs for 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
greghesp committed Dec 5, 2019
1 parent 9e163b2 commit 66acb31
Show file tree
Hide file tree
Showing 6 changed files with 351 additions and 5 deletions.
4 changes: 1 addition & 3 deletions relay/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ app.use(express.static(path.join(__dirname, './views')));
global.assistants = {};

cron.schedule("0 1 * * *", function() {
if(updateAvail) console.log(`An update is available. Please visit https://github.com/greghesp/assistant-relay/releases`);
if(isUpdateAvailable) console.log(`An update is available. Please visit https://github.com/greghesp/assistant-relay/releases`);
});


(async function () {
try {
await initializeServer();
Expand All @@ -48,7 +47,6 @@ app.use(function(err, req, res, next) {
res.status(err.status || 500);
console.log(req.body, req.query)
console.log(err)
// res.render('error');
});

module.exports = app;
1 change: 1 addition & 0 deletions relay/bin/www
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node

const app = require('../app');
//const socket = require('../socket');
const debug = require('debug')('relay:server');
const http = require('http');
const low = require('lowdb');
Expand Down
2 changes: 1 addition & 1 deletion relay/helpers/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ exports.isStartupMuted = function() {
};


exports.isUpdateAvailable = function() {
exports.isUpdateAvailable = function() {
return new Promise(async(res, rej) => {
const feed = await parser.parseURL('https://github.com/greghesp/assistant-relay/releases.atom');
const latestVersion = feed.items[0].title;
Expand Down
Loading

0 comments on commit 66acb31

Please sign in to comment.