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) {