Skip to content

User report · Repositories

0 modules · 0 exports · 1 repository · 3 e2e tests · 1 route

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.

UserReportRepository

app/features/user-report/UserReportRepository.server.ts
Tables
UserUserReport
Calls
no other repositories
Imports
no other modules
Used by
1 loader1 route1 other

Functions & values

function

upsert

:7

Inserts, or overwrites the pair's existing report (bumping createdAt). Returns whether it was an update.

export function upsert(
	args: Omit<TablesInsertable["UserReport"], "createdAt">,
)
function

countRecentByReportedUserId

:37

Reports against the user in the last month and in the last year.

export async function countRecentByReportedUserId(reportedUserId: number)
function

findAllByReportedUserId

:58

Reports against the user, newest first, with reporter info.

export function findAllByReportedUserId(reportedUserId: number)