260713_01_ENH: 미진행인 모니터링 평가에 대해서도 upload가 가능하도록 수정 및 재단 계정에서도 업로드 가능하게 수정

This commit is contained in:
2026-07-13 11:35:47 +09:00
parent c6eeb3e62f
commit 6a1a1ba263
3 changed files with 27 additions and 7 deletions

View File

@@ -168,10 +168,12 @@ export const POST = async (
const backendForm = new FormData();
backendForm.append("file", file, file.name);
const paramUserId = req.nextUrl.searchParams.get("paramUserId") ?? undefined;
const result = await backApi.postForm<PerformanceReview>(
`/review/${encodeURIComponent(action)}/${encodeURIComponent(second)}`,
backendForm
backendForm,
{ query: paramUserId ? { paramUserId } : undefined }
);
return NextResponse.json(result, { status: 200 });
}