ImageRepository
app/features/img-upload/ImageRepository.server.ts- Tables
- ArtCalendarEventTeamUnvalidatedUserSubmittedImageUser
- Calls
- no other repositories
- Imports
- no other modules
- Used by
- 2 loaders1 action1 script2 other
Functions & values
Unvalidated image's submitter with its calendar event data.
export function findById(id: number)
Unit tests (3)
Deletes an image and its art entry.
export function deleteById(id: number)
Unit tests (2)
Actions/upload/admin
Count of the author's unvalidated art images.
export async function countUnvalidatedArt(authorId: number)
Unit tests (3)
Loaders/u/:identifier/art
Count of unvalidated images used in teams, art or calendar events.
export async function countAllUnvalidated()
Unit tests (5)
Loaders/upload/admin
Unvalidated images for admin review, with submitter info.
export function findAllUnvalidated()
Unit tests (5)
Loaders/upload/admin
Count of the user's unvalidated images connected to a team, art or event (orphans excluded); gates image() uploads.
export async function countUnvalidatedBySubmitterUserId(userId: number)
Unit tests (5)
Inserts an unvalidated image row without an owner. Returns the inserted row.
export function insert( args: TablesInsertable["UnvalidatedUserSubmittedImage"], trx?: Transaction<DB>, )