fix: logs

This commit is contained in:
Charles GTE
2026-05-15 22:08:14 +02:00
parent 4f14d16452
commit 4e66b8ed04
4 changed files with 15 additions and 16 deletions
@@ -2,15 +2,15 @@
import {userAction} from "@/lib/safe-actions/actions";
import { logger } from "@/lib/logger";
const log = logger.child({ module: "dashboard/delete-project.action" });
import {z} from "zod";
import {v4 as uuidv4} from "uuid";
import {ServerActionResult} from "@/types/action-type";
import {and, eq, inArray} from "drizzle-orm";
import {eq, inArray} from "drizzle-orm";
import {db} from "@/db";
import * as drizzleDb from "@/db";
const log = logger.child({ module: "dashboard/delete-project.action" });
export const deleteProjectAction = userAction.schema(z.string()).action(async ({parsedInput}): Promise<ServerActionResult<typeof drizzleDb.schemas.project.$inferSelect>> => {
try {
const uuid = uuidv4();