Skip to content

Commit bae614a

Browse files
committed
assessment intro
assessment outro update outro update intro make prettier [OA][Fullstack] - OA Websockets (#278) * progress * modal + handling skeleton and stateful code editor * prettier * update tokenschema name [OA][Fullstack] - OA Websockets - follow up (#278) window unfocused modal (#279) * window unfocused modal * PR fixes update button
1 parent 38c9bc5 commit bae614a

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/lib/services/assessment.service.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ async function getAssessmentForCandidate(assessmentId: string): Promise<Candidat
245245
candidate: {
246246
select: { name: true, email: true },
247247
},
248+
position: {
249+
select: {
250+
organization: {
251+
select: { name: true },
252+
},
253+
},
254+
},
248255
},
249256
},
250257
assessmentTemplate: {
@@ -290,6 +297,7 @@ async function getAssessmentForCandidate(assessmentId: string): Promise<Candidat
290297
submittedAt: assessment.submittedAt,
291298
assessmentStatus: assessment.application.assessmentStatus,
292299
candidateName: assessment.application.candidate.name,
300+
organizationName: assessment.application.position.organization.name,
293301
candidateEmail: assessment.application.candidate.email,
294302
assessmentTemplate: {
295303
title: assessment.assessmentTemplate.title,

src/lib/types/candidate-assessment.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export type CandidateAssessment = {
3131
submittedAt: Date | null;
3232
assessmentStatus: AssessmentStatus;
3333
candidateName: string;
34+
organizationName: string;
3435
candidateEmail: string;
3536
assessmentTemplate: {
3637
title: string;

src/ws/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { WebSocketServer } from 'ws';
22
import { jwtVerify } from 'jose';
33

44
const ws = new WebSocketServer({ port: 8080 });
5-
const secret = new TextEncoder().encode(process.env.JWT_SECRET);
5+
const secret = new TextEncoder().encode('SECRET');
66

77
console.log('Sarge WS server listening on 8080');
88

0 commit comments

Comments
 (0)