From a8223e533f629607a227de4ed88bdcbc45e7d5aa Mon Sep 17 00:00:00 2001 From: nose221834 Date: Sat, 16 Nov 2024 22:45:59 +0900 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AE=9A=E3=81=99=E3=82=8Bpath?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/app/api/minio/route.ts | 3 +-- app/src/app/api/user/rename/[id]/route.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/app/api/minio/route.ts b/app/src/app/api/minio/route.ts index 99ca757..4b0f0ef 100644 --- a/app/src/app/api/minio/route.ts +++ b/app/src/app/api/minio/route.ts @@ -125,8 +125,7 @@ export async function POST(req: NextRequest) { assignmentId: assignmentId, }; - revalidatePath("/api/score/week"); - revalidatePath("/api/score/month"); + revalidatePath("/ranking"); return new Response(JSON.stringify(response), { status: 200, diff --git a/app/src/app/api/user/rename/[id]/route.ts b/app/src/app/api/user/rename/[id]/route.ts index 413029f..34a736e 100644 --- a/app/src/app/api/user/rename/[id]/route.ts +++ b/app/src/app/api/user/rename/[id]/route.ts @@ -30,7 +30,7 @@ export async function PUT(req: NextRequest) { data: { name : name }, }); - revalidatePath("/api/user"); + revalidatePath("/ranking"); return NextResponse.json({ putName }, { status: 200 }); } catch (error) {