Skip to content

Commit

Permalink
fix: 채점결과에 stderr 전송 안하도록 수정, 채점 완료시 bool 값 전송으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rladydgn committed Dec 9, 2023
1 parent 9ccc146 commit af92d75
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ export class CompetitionService {
}

result['problemId'] = submission.problemId;
result['stderr'] = scoreResultDto.stderr;
this.server.to(scoreResultDto.socketId).emit('scoreResult', result);

// 모두 제출했는지 확인
Expand Down Expand Up @@ -378,7 +377,10 @@ export class CompetitionService {

this.server
.to(scoreResultDto.socketId)
.emit('problemResult', { message: RESULT[totalResult], problemId: submission.problemId });
.emit('problemResult', {
result: totalResult === 'CORRECT' ? true : false,
problemId: submission.problemId,
});
}
}

Expand Down

0 comments on commit af92d75

Please sign in to comment.