Files
CRAPP/src/lib/notifiche-attive.server.ts
T

5 lines
243 B
TypeScript
Raw Normal View History

/** Id giocatore distinti tra le righe di `push_subscriptions` (una riga per dispositivo). */
export function idsConNotificheAttive(righe: Array<{ giocatore_id: string }>): string[] {
return [...new Set(righe.map((r) => r.giocatore_id))];
}