Ready for 1.1.3-rc.2

This commit is contained in:
charlesgauthereau
2025-11-03 10:59:26 +01:00
parent 8a8ef81fce
commit 9894e2582d
4 changed files with 3 additions and 15 deletions
-6
View File
@@ -5,7 +5,6 @@ import * as drizzleDb from "@/db";
import {db} from "@/db";
import {and, eq} from "drizzle-orm";
export type BodyResultRestore = {
generatedId: string
status: string
@@ -13,7 +12,6 @@ export type BodyResultRestore = {
type RestorationStatus = 'waiting' | 'ongoing' | 'failed' | 'success';
export async function POST(
request: Request,
{params}: { params: Promise<{ agentId: string }> }
@@ -27,7 +25,6 @@ export async function POST(
console.log(body)
if (!isUuidv4(body.generatedId)) {
return NextResponse.json(
{error: "generatedId is not a valid uuid"},
@@ -71,10 +68,7 @@ export async function POST(
eventEmitter.emit('modification', {update: true});
return Response.json(response, {status: 200})
} catch (error) {
console.error('Error in POST handler:', error);
return NextResponse.json(