Skip to content

Art · Repositories

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

ArtRepository

app/features/art/ArtRepository.server.ts
Tables
ArtArtTagArtUserMetadataTaggedArtUnvalidatedUserSubmittedImageUserUserSubmittedImage
Calls
no other repositories
Imports
no other modules
Used by
3 loaders2 actions1 routine1 script2 other

Functions & values

function

unlinkOwnFromArt

no JSDoc:14
export function unlinkOwnFromArt(artId: number)
function

findShowcaseArtsByTag

no JSDoc:90
export async function findShowcaseArtsByTag(
	tagId: Tables["ArtTag"]["id"],
): Promise<ListedArt[]>
Unit tests (2)
function

findRecentlyUploadedArts

no JSDoc:144
export async function findRecentlyUploadedArts(): Promise<ListedArt[]>
Unit tests (1)
function

findAllTags

no JSDoc:182
export async function findAllTags()
TablesArtTag
Unit tests (2)
function

deleteOrphanTags

no JSDoc:186
export async function deleteOrphanTags()
Unit tests (2)
function

findById

:196

Art by its id, with the ids of the users tagged in it.

export async function findById(id: Tables["Art"]["id"])
function

findArtsByUserId

no JSDoc:219
export async function findArtsByUserId(
	userId: number,
	{ includeAuthored = true, includeTagged = true } = {},
): Promise<ListedArt[]>
Unit tests (2)
function

deleteById

no JSDoc:341
export async function deleteById(id: number)
TablesArt
Unit tests (2)
function

insert

no JSDoc:353
export async function insert(args: InsertArtArgs)
Unit tests (2)
function

update

no JSDoc:400
export async function update(id: number, args: UpdateArtArgs)
Unit tests (2)
Actions/art/new
Unit tests not about one export (1)