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
export function findSettingsByUserId(userId: number)
export function findMapModePreferencesByUserId(userId: number)
TablesUser
Match profile weapon pool of one user, with ten-star status.
export function findWeaponPoolByUserId(userId: number)
export async function updateOwnMatchProfile({ mapModePreferences, vc, languages, weaponPool, noScreen, }: { mapModePreferences: UserMapModePreferences; vc: Tables["User"]["vc"]; languages: UnifiedLanguageCode[]; weaponPool: WeaponPoolItem[]; noScreen: DBBoolean; })
TablesUserUserWeaponPool
Unit tests (3)
Actions/settings
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, )
Repositoriesteam/TeamRepository.server.ts