Skip to content

Vods · Repositories

0 modules · 0 exports · 1 repository · 4 e2e tests · 3 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.

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

function

findByUserId

no JSDoc:35
export async function findByUserId(userId: Tables["User"]["id"], limit = 100)
Unit tests (3)
function

findVods

:48

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)
function

countVods

:101

How many vods match the filters.

export async function countVods(filters: VodFilters)
Unit tests (1)
function

update

no JSDoc:197
export async function update(
	args: VideoBeingAdded & {
		isValidated: boolean;
		id: number;
	},
)
Unit tests (3)
Actions/vods/new
function

insert

no JSDoc:206
export async function insert(
	args: VideoBeingAdded & {
		submitterUserId: number;
		isValidated: boolean;
	},
)
Unit tests (4)
function

deleteById

no JSDoc:294
export function deleteById(id: number)
Unit tests (2)
Actions/vods/:id