Skip to content

Commit

Permalink
Improved now screening debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed Feb 3, 2024
1 parent 1039d03 commit 1ad5430
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 6 additions & 1 deletion classes/core/health.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ class Health {

try {
let result = await Promise.resolve(ms.client.query("/status/sessions"));
console.log(result);
if(result.MediaContainer.size == 0){
console.log("Nothing returned as playing. Please verify this is correct");
}
else{
console.log(result.MediaContainer.size + " media item(s) playing.");
}
} catch (err) {
console.log(err);
}
Expand Down
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,9 +1002,6 @@ async function checkEnabled() {
Trivia: ` +
isTriviaEnabled +
`
Links: ` +
isLinksEnabled +
`
`
);
return;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posterr",
"version": "1.16.13",
"version": "1.16.14",
"description": "A digital display for your media",
"main": "index.js",
"bin": "index.js",
Expand Down

0 comments on commit 1ad5430

Please sign in to comment.