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
Inserts, or overwrites the pair's existing report (bumping createdAt). Returns whether it was an update.
export function upsert( args: Omit<TablesInsertable["UserReport"], "createdAt">, )
TablesUserReport
Routes/user-report/:id
Reports against the user in the last month and in the last year.
export async function countRecentByReportedUserId(reportedUserId: number)
TablesUserReport
Routes/user-report/:id
Reports against the user, newest first, with reporter info.
export function findAllByReportedUserId(reportedUserId: number)
TablesUserUserReport
Loaders/u/:identifier/admin