Optimisations and updated readme
This commit is contained in:
+2
-1
@@ -59,6 +59,7 @@ function normalizeScheduleMode(value) {
|
||||
return 'always';
|
||||
}
|
||||
|
||||
|
||||
function getAuditUserId(req) {
|
||||
return req && req.currentUser ? Number(req.currentUser.id) : null;
|
||||
}
|
||||
@@ -807,7 +808,7 @@ async function start() {
|
||||
const sent = command === 'blackout'
|
||||
? await notifyPlayerScreens(slugs, {
|
||||
command: 'blackout',
|
||||
blackout: !['0', 'false', 'off', 'restore'].includes(String(req.body.blackout || '').trim().toLowerCase())
|
||||
blackout: req.body.blackout
|
||||
})
|
||||
: await notifyPlayerScreens(slugs, command);
|
||||
await broadcastDashboardState();
|
||||
|
||||
Reference in New Issue
Block a user