dont send empty updates

This commit is contained in:
Darius
2026-02-05 22:45:14 +01:00
parent 582c82d66f
commit 7b6a056141

View File

@@ -86,10 +86,12 @@ export class HomepageService extends BaseService<null> {
}); });
} }
this.sseService.notifyClients({ if (updates.length > 0) {
type: "update", this.sseService.notifyClients({
data: updates, type: "update",
}); data: updates,
});
}
this.lastPoll = newPoll; this.lastPoll = newPoll;
this.scheduleSongEndPoll(newPoll.tidal_current); this.scheduleSongEndPoll(newPoll.tidal_current);