Testing in local validated.

This commit is contained in:
charlesgauthereau
2025-07-16 20:16:18 +02:00
parent de9fe33194
commit 5e704ec18a
21 changed files with 598 additions and 591 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import { MoreHorizontal } from "lucide-react";
import { ReloadIcon } from "@radix-ui/react-icons";
import { StatusBadge } from "@/components/wrappers/common/status-badge";
import {Restoration} from "@/db/schema/06_database";
import {formatFrenchDate} from "@/utils/date-formatting";
export const restoreColumns: ColumnDef<Restoration>[] = [
{
@@ -17,7 +18,7 @@ export const restoreColumns: ColumnDef<Restoration>[] = [
accessorKey: "createdAt",
header: "Created At",
cell: ({ row }) => {
return new Date(row.getValue("createdAt")).toLocaleString("fr-FR");
return formatFrenchDate(row.getValue("createdAt"))
},
},
{
@@ -1,3 +1,4 @@
"use server"
import { userAction } from "@/safe-actions";
import { z } from "zod";
import { ServerActionResult } from "@/types/action-type";
@@ -58,6 +59,7 @@ export const deleteBackupAction = userAction
}
});
// Create Restoration Action (Drizzle version)
export const createRestorationAction = userAction
.schema(