From af92d75a2c91672b729b12e7927923c17074174e Mon Sep 17 00:00:00 2001 From: rladydgn <39542757+rladydgn@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:16:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B1=84=EC=A0=90=EA=B2=B0=EA=B3=BC?= =?UTF-8?q?=EC=97=90=20stderr=20=EC=A0=84=EC=86=A1=20=EC=95=88=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95,=20=EC=B1=84=EC=A0=90?= =?UTF-8?q?=20=EC=99=84=EB=A3=8C=EC=8B=9C=20bool=20=EA=B0=92=20=EC=A0=84?= =?UTF-8?q?=EC=86=A1=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/competition/services/competition.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/be/algo-with-me-api/src/competition/services/competition.service.ts b/be/algo-with-me-api/src/competition/services/competition.service.ts index 6295284..c1e2c96 100644 --- a/be/algo-with-me-api/src/competition/services/competition.service.ts +++ b/be/algo-with-me-api/src/competition/services/competition.service.ts @@ -344,7 +344,6 @@ export class CompetitionService { } result['problemId'] = submission.problemId; - result['stderr'] = scoreResultDto.stderr; this.server.to(scoreResultDto.socketId).emit('scoreResult', result); // 모두 제출했는지 확인 @@ -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, + }); } }