Skip to content

Match profile · Repositories

0 modules · 0 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.

MatchProfileRepository

app/features/match-profile/MatchProfileRepository.server.ts
Tables
TenStarWeaponUserUserWeaponPool
Calls
no other repositories
Imports
no other modules
Used by
5 loaders1 action1 repository1 script3 other

Functions & values

function

findSettingsByUserId

no JSDoc:12
export function findSettingsByUserId(userId: number)
function

findMapModePreferencesByUserId

no JSDoc:26
export function findMapModePreferencesByUserId(userId: number)
TablesUser
function

findWeaponPoolByUserId

:36

Match profile weapon pool of one user, with ten-star status.

export function findWeaponPoolByUserId(userId: number)
function

updateOwnMatchProfile

no JSDoc:45
export async function updateOwnMatchProfile({
	mapModePreferences,
	vc,
	languages,
	weaponPool,
	noScreen,
}: {
	mapModePreferences: UserMapModePreferences;
	vc: Tables["User"]["vc"];
	languages: UnifiedLanguageCode[];
	weaponPool: WeaponPoolItem[];
	noScreen: DBBoolean;
})
Unit tests (3)
function

mergeExcludedModePreferences

:115

Keeps preferences of modes left out of the submission, so their maps are remembered when the mode is played again.

export function mergeExcludedModePreferences(
	newPool: UserMapModePreferences["pool"],
	currentPool: UserMapModePreferences["pool"] | undefined,
)