260713_01_ENH: 미진행인 모니터링 평가에 대해서도 upload가 가능하도록 수정 및 재단 계정에서도 업로드 가능하게 수정
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user