added replicas for docker swarm
This commit is contained in:
@@ -6,7 +6,6 @@ export async function GET(req: NextRequest): Promise<NextResponse> {
|
||||
const id = searchParams.get("id");
|
||||
const filter = searchParams.get("filter");
|
||||
|
||||
console.log(filter);
|
||||
const filterParsed = JSON.parse(filter || "{}");
|
||||
|
||||
try {
|
||||
@@ -20,9 +19,6 @@ export async function GET(req: NextRequest): Promise<NextResponse> {
|
||||
return NextResponse.json(data, { status: 200 });
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
return NextResponse.json(
|
||||
{ error: "Failed to fetch mission" },
|
||||
{ status: 500 },
|
||||
);
|
||||
return NextResponse.json({ error: "Failed to fetch mission" }, { status: 500 });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user