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> {
}); });
} }
if (updates.length > 0) {
this.sseService.notifyClients({ this.sseService.notifyClients({
type: "update", type: "update",
data: updates, data: updates,
}); });
}
this.lastPoll = newPoll; this.lastPoll = newPoll;
this.scheduleSongEndPoll(newPoll.tidal_current); this.scheduleSongEndPoll(newPoll.tidal_current);