Bläddra i källkod

Fixed some issues raised from Cameron's refactor

theflametrooper 8 år sedan
förälder
incheckning
360aff1ba7

+ 1 - 1
backend/index.js

@@ -8,7 +8,7 @@ const db = require('./logic/db');
 const app = require('./logic/app');
 const io = require('./logic/io');
 const cache = require('./logic/cache');
-const scheduler = require('./logic/scheduler');
+// const scheduler = require('./logic/scheduler');
 
 async.waterfall([
 

+ 2 - 0
backend/logic/cache/index.js

@@ -1,5 +1,7 @@
 'use strict';
 
+const redis = require('redis');
+
 // Lightweight / convenience wrapper around redis module for our needs
 
 const pubs = {}, subs = {};

+ 1 - 1
backend/logic/notifications.js

@@ -25,7 +25,7 @@ const lib = {
 			});
 		});
 		client.psubscribe('__keyevent@0__:expired');
-	}
+	},
 
 	/**
 	 * Schedules a notification to be dispatched in a specific amount of milliseconds,

+ 2 - 2
frontend/App.vue

@@ -38,7 +38,7 @@
 		events: {
 			'register': function () {
 
-				var { register: { email, username, password } } = this;
+				let { register: { email, username, password } } = this;
 
 				this.socket.emit('users.login', email, username, password, grecaptcha.getResponse(), (result) => {
 					console.log(result);
@@ -47,7 +47,7 @@
 			},
 			'login': function () {
 
-				var { login: { email, password } } = this;
+				let { login: { email, password } } = this;
 
 				this.socket.emit('users.login', email, password, (result) => {
 					console.log(result);

+ 1 - 1
frontend/components/pages/Station.vue

@@ -239,7 +239,7 @@
 			this.socket = this.$parent.socket;
 
 			this.socket.on('event:songs.next', (data) => {
-				var {currentSong, startedAt} = data;
+				let {currentSong, startedAt} = data;
 				this.currentSong = currentSong;
 				this.startedAt = startedAt;
 				this.timePaused = 0;