Added passportid to the table ; removed gender column from table
This commit is contained in:
@@ -235,6 +235,8 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
||||
|
||||
const result = exams.length === 0 ? "N/A" : `${correct}/${total}`;
|
||||
|
||||
const userDemographicInformation = user?.demographicInformation as DemographicInformation;
|
||||
|
||||
return {
|
||||
id,
|
||||
name: user?.name || "N/A",
|
||||
@@ -244,6 +246,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
||||
result,
|
||||
level: showLevel ? getLevelScoreForUserExams(bandScore) : undefined,
|
||||
bandScore,
|
||||
passportId: userDemographicInformation?.passport_id || ""
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user