Skip to content

Live streams · Repositories

2 modules · 8 exports · 1 repository · 0 e2e tests · 0 routes

Every table a function queries, its own helpers included, read or written. Calls to other repositories are listed apart, their tables are on their own page.

LiveStreamRepository

app/features/live-streams/LiveStreamRepository.server.ts
Tables
LiveStreamSkillSplatoonPlayerTournamentStreamerUserUserSubmittedImage
Calls
no other repositories
Imports
StreamRanking
Used by
1 routine1 script4 other

Functions & values

function

replaceAll

no JSDoc:11
export function replaceAll(streams: Omit<Tables["LiveStream"], "id">[])
function

insertTournamentStreamers

:22

Adds the accounts as streamers of their tournament, returning the inserted ids in order; an account already streaming it is skipped.

export async function insertTournamentStreamers(
	rows: Omit<Tables["TournamentStreamer"], "id">[],
)
function

findByUserId

:38

The user's ongoing Splatoon 3 streams on their connected accounts, one per platform they are live on, most viewed first.

export function findByUserId(userId: number)
function

findXRankStreams

:54

Live streams (on their connected accounts) of high X Power players with a calculated skill (enough sets for the leaderboard) in season season or the one before it.

export function findXRankStreams(season: number)