We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae59086 commit b87633dCopy full SHA for b87633d
2 files changed
src/app/api/oa/[assessmentId]/submit/route.ts
@@ -9,7 +9,7 @@ export async function PUT(
9
try {
10
const { assessmentId } = await params;
11
await AssessmentService.submitAssessmentForCandidate(assessmentId);
12
- return Response.json({ data: null }, { status: 200 });
+ return Response.json({ data: null }, { status: 201 });
13
} catch (err) {
14
return handleError(err);
15
}
src/lib/api/candidate-assessment.ts
@@ -18,4 +18,6 @@ export async function submitCandidateAssessment(assessmentId: string): Promise<v
18
if (!res.ok) {
19
throw new Error(json.message);
20
21
+
22
+ return json.data;
23
0 commit comments