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
export async function findShowcaseArtsByTag( tagId: Tables["ArtTag"]["id"], ): Promise<ListedArt[]>
Loaders/art
export async function deleteOrphanTags()
Art by its id, with the ids of the users tagged in it.
export async function findById(id: Tables["Art"]["id"])
TablesArtArtUserMetadata
Actions/art/new/u/:identifier/art
export async function findArtsByUserId( userId: number, { includeAuthored = true, includeTagged = true } = {}, ): Promise<ListedArt[]>
Unit tests (2)
- returns
export async function insert(args: InsertArtArgs)
Unit tests (2)
Actions/art/new
Otherapp/db/ArtFactory.ts
export async function update(id: number, args: UpdateArtArgs)
Actions/art/new