MCPcopy
hub / github.com/nowork-studio/NotFair / archiveProject

Function archiveProject

notfair-cmo/src/server/db/projects.ts:236–241  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

234}
235
236export function archiveProject(slug: string): Project | null {
237 const db = getDb();
238 const now = new Date().toISOString();
239 db.prepare("UPDATE projects SET archived_at = ? WHERE slug = ? AND archived_at IS NULL").run(now, slug);
240 return getProject(slug);
241}
242
243export function unarchiveProject(slug: string): Project | null {
244 const db = getDb();

Callers 2

archiveProjectActionFunction · 0.90
projects.test.tsFile · 0.90

Calls 2

getDbFunction · 0.90
getProjectFunction · 0.85

Tested by

no test coverage detected