Fix event watcher lol

This commit is contained in:
Christopher Cookman 2025-08-31 15:35:36 -06:00
parent aca40de484
commit 94ab821fdb

View file

@ -16,8 +16,6 @@ async function getLastEventIndex() {
}
}
getLastEventIndex();
async function fetchEvents() {
try {
const events = await db.query('SELECT * FROM Events WHERE EventIndex > ? ORDER BY EventIndex ASC', [lastEventIndex]);
@ -37,7 +35,6 @@ async function fetchEvents() {
(async () => {
await getLastEventIndex();
log.info("Event watcher started.");
await fetchEvents();
})();