MCPcopy Create free account
hub / github.com/code100x/daily-code / addCategory

Function addCategory

apps/web/components/utils.tsx:473–480  ·  view source on GitHub ↗
(category: string)

Source from the content-addressed store, hash-verified

471}
472
473export async function addCategory(category: string) {
474 const newCategory = await db.categories.create({
475 data: {
476 category,
477 },
478 });
479 return newCategory;
480}
481
482export async function deleteCategory(categoryId: string) {
483 await db.categories.delete({

Callers 1

handleAddCategoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected