From 0bb92acff8f0a7ecafe185ac5e7257df9afaab9e Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Fri, 17 Jan 2020 21:54:25 -0500 Subject: [PATCH] revert auto dj algorithm --- modules/db-read/database-public-loki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/db-read/database-public-loki.js b/modules/db-read/database-public-loki.js index 49aad9a..f6c0931 100644 --- a/modules/db-read/database-public-loki.js +++ b/modules/db-read/database-public-loki.js @@ -555,7 +555,7 @@ exports.setup = function (mstream, program) { randomNumber = Math.floor(Math.random() * count); } - let randomSong = results[randomNumber]; + const randomSong = results[randomNumber]; returnThis.songs.push({ "filepath": fe.join(randomSong.vpath, randomSong.filepath).replace(/\\/g, '/'),