Skip to content

LFG · Repositories

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

LFGRepository

app/features/lfg/LFGRepository.server.ts
Tables
LFGPostPlusTierTeamTeamMemberWithSecondaryTenStarWeaponUserUserSubmittedImageUserWeaponPool
Calls
no other repositories
Imports
no other modules
Used by
2 loaders2 actions1 repository1 script2 other

Functions & values

function

findBoardPage

:48

Page of the LFG board as the actor sees it: their own posts first, then the most recently bumped. Expired posts are only shown to their author, plus tier restricted ones to members of the tier or a better one.

export function findBoardPage({
	filters,
	page,
	pageSize,
	containingPostId,
}: {
	filters: BoardFilters;
	page: number;
	pageSize: number;
	/** Serves the page holding this post instead of `page`, when it is on the board. */
	containingPostId: number | null;
})
function

findVisibleById

:90

The post if it is visible to the actor, see {@link findBoardPage}.

export async function findVisibleById(id: number)
Unit tests (1)
function

findAllOwn

:102

The actor's own posts, expired and plus tier restricted ones included.

export async function findAllOwn()
function

findAllVisibleParticipantIds

:124

User ids of the author and team members of every post visible to the actor, see {@link findBoardPage}.

export async function findAllVisibleParticipantIds()
Unit tests (1)
function

insertPost

no JSDoc:153
export function insertPost(
	args: Omit<TablesInsertable["LFGPost"], "updatedAt">,
)
TablesLFGPost
function

updatePost

no JSDoc:163
export function updatePost(
	postId: number,
	args: Omit<TablesInsertable["LFGPost"], "updatedAt" | "authorId">,
)
TablesLFGPost
Actions/lfg/new
function

bumpPost

no JSDoc:182
export function bumpPost(postId: number)
TablesLFGPost
Actions/lfg
function

deletePost

no JSDoc:192
export function deletePost(id: number)
TablesLFGPost
Actions/lfg
function

deletePostsByTeamId

no JSDoc:196
export function deletePostsByTeamId(teamId: number, trx?: Transaction<DB>)
TablesLFGPost
Unit tests not about one export (12)