diff --git a/src/pages/api/stats/[id]/export.tsx b/src/pages/api/stats/[id]/export.tsx index 824c74d9..2736bccf 100644 --- a/src/pages/api/stats/[id]/export.tsx +++ b/src/pages/api/stats/[id]/export.tsx @@ -278,7 +278,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) { .format("ll HH:mm:ss")} name={user.name} email={user.email} - id={user.id} + id={userId} gender={demographicInformation?.gender} summary={performanceSummary} testDetails={testDetails}