|
@@ -3,6 +3,7 @@
|
|
const cache = require("./cache");
|
|
const cache = require("./cache");
|
|
const logger = require("./logger");
|
|
const logger = require("./logger");
|
|
const Stations = require("./stations");
|
|
const Stations = require("./stations");
|
|
|
|
+const notifications = require("./notifications");
|
|
const async = require("async");
|
|
const async = require("async");
|
|
let utils;
|
|
let utils;
|
|
let tasks = {};
|
|
let tasks = {};
|
|
@@ -29,7 +30,7 @@ let checkStationSkipTask = (callback) => {
|
|
if (timeElapsed <= station.currentSong.duration) return next2();
|
|
if (timeElapsed <= station.currentSong.duration) return next2();
|
|
else {
|
|
else {
|
|
logger.error("TASK_STATIONS_SKIP_CHECK", `Skipping ${station._id} as it should have skipped already.`);
|
|
logger.error("TASK_STATIONS_SKIP_CHECK", `Skipping ${station._id} as it should have skipped already.`);
|
|
- Stations.skipStation(station._id);
|
|
|
|
|
|
+ Stations.initializeStation(station._id);
|
|
next2();
|
|
next2();
|
|
}
|
|
}
|
|
}, () => {
|
|
}, () => {
|