API Updates
Deploy / deploy (push) Successful in 3m3s

This commit is contained in:
twotalesanimation
2026-07-08 14:38:56 +02:00
parent d40ca8eb55
commit afcef02409
9 changed files with 399 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
import { db } from "@/lib/db";
export type DisplayEventType = "APPROVED" | "CHANGES" | "COMMENT" | "REJECTED";
export async function createDisplayEvent(
type: DisplayEventType,
shotCode: string,
by: string
): Promise<void> {
try {
await db.displayEvent.create({ data: { type, shotCode, by } });
} catch {
// Non-critical — never let display events break the main flow
}
}