From b04d41a38d20934394c83b7de0a4afdebcfd23a6 Mon Sep 17 00:00:00 2001 From: Matthew Petersen Date: Fri, 1 Mar 2024 11:10:11 +1000 Subject: [PATCH] fix custom pictures bug --- classes/custom/pictures.js | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/custom/pictures.js b/classes/custom/pictures.js index e2f5e56..4c7b7ec 100644 --- a/classes/custom/pictures.js +++ b/classes/custom/pictures.js @@ -74,12 +74,13 @@ class Pictures { pictures.push(pic); }); // shuffle pictures array - pictures = pictures.sort((a, b) => 0.5 - Math.random()); + //pictures = pictures.sort((a, b) => 0.5 - Math.random()); // pictures.forEach(p => { // console.log(p.url); // }); - // return pictures; + + return pictures; }); } diff --git a/package.json b/package.json index bec8188..ed76673 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "posterr", - "version": "1.17.8", + "version": "1.17.9", "description": "A digital display for your media", "main": "index.js", "bin": "index.js",