chore(deps): update drizzle-orm to 0.45.2 and pg to 8.20.0

This commit is contained in:
2026-04-22 14:23:34 +02:00
parent 0a3069762d
commit 41bc419a95
12 changed files with 49 additions and 25 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import { FreshContext, Handlers } from "$fresh/server.ts";
import { db } from "$root/databases/db.ts";
import { users } from "$root/databases/schema.ts";
import { AuthenticatedState } from "$root/defaults/interfaces.ts";
import { eq } from "npm:drizzle-orm";
import { eq } from "npm:drizzle-orm@0.45.2";
const NOT_FOUND = new Response(
JSON.stringify({ error: "Ressource introuvable" }),
@@ -33,8 +33,8 @@ export const handler: Handlers<null, AuthenticatedState> = {
request: Request,
context: FreshContext<AuthenticatedState>,
): Promise<Response> {
const body: { nom: string; prenom: string; idRole: number } =
await request.json();
const body: { nom: string; prenom: string; idRole: number } = await request
.json();
const [updated] = await db
.update(users)