This commit is contained in:
Christopher Cookman 2025-09-01 02:39:02 -06:00
parent 78194ee212
commit 98f6c6e87c
2 changed files with 1 additions and 2 deletions

View file

@ -252,7 +252,7 @@ router.ws("/bulk-add", (ws, req) => {
}
global.dbEvent.on('event', (event) => {
if (event.EventType != 1 || event.Granted != 0) return; // Only process 'Swipe' events that were denied
if ( event.Type != 1 || event.Granted != 0 ) return; // Only process 'Swipe' events that were denied
ws.send(JSON.stringify(event));
});
});

View file

@ -61,7 +61,6 @@
console.log('Event received:', event.data);
const tbody = document.querySelector('tbody');
const log = JSON.parse(event.data);
if (!log || log.EventType != 2 || log.Granted != 0) return; // Only allow denied swipes
const tr = document.createElement('tr');
tr.innerHTML = `
<td><input type="checkbox" /></td>