VodRepository
app/features/vods/VodRepository.server.ts- Tables
- UnvalidatedVideoUserUserSubmittedImageVideoVideoMatchVideoMatchPlayer
- Calls
- no other repositories
- Imports
- no other modules
- Used by
- 4 loaders2 actions1 script3 other
Functions & values
export async function findByUserId(userId: Tables["User"]["id"], limit = 100)
Unit tests (3)
Page of the vods matching the filters, newest first, with the weapons and players of their matching match rows.
export async function findVods({ limit = VODS_PAGE_BATCH_SIZE, offset = 0, ...filters }: VodFilters & { limit?: number; offset?: number; })
Unit tests (10)
Loaders/u/:identifier/vods/vods
How many vods match the filters.
export async function countVods(filters: VodFilters)
Unit tests (1)
Loaders/u/:identifier/vods/vods
export async function findVodById(id: Tables["Video"]["id"])
PermissionsEDIT
Unit tests (3)
Actions/vods/:id
export async function update( args: VideoBeingAdded & { isValidated: boolean; id: number; }, )
Unit tests (3)
Actions/vods/new
export async function insert( args: VideoBeingAdded & { submitterUserId: number; isValidated: boolean; }, )
Unit tests (4)
Actions/vods/new
Otherapp/db/VodFactory.ts