feat(api): add POST /exam-challenge-completed (#52395)

This commit is contained in:
Tom
2023-12-27 09:10:30 -06:00
committed by GitHub
parent 741ca9338e
commit 1efb22cd34
15 changed files with 842 additions and 64 deletions

View File

@@ -1,6 +1,6 @@
/* This module's job is to parse the database output and prepare it for
serialization */
import { ProfileUI, CompletedChallenge } from '@prisma/client';
import { ProfileUI, CompletedChallenge, ExamResults } from '@prisma/client';
import _ from 'lodash';
type NullToUndefined<T> = T extends null ? undefined : T;
@@ -81,6 +81,7 @@ type NormalizedChallenge = {
id: string;
isManuallyApproved?: boolean;
solution?: string;
examResults?: ExamResults;
};
/**