Skip to content

Commit 5421e89

Browse files
committed
Remove Comments
1 parent 23e41d4 commit 5421e89

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

backend/matching-service/workers/matchWorker.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async function handleMatch(user1: any, user2: any) {
244244
matchId: savedEvent._id.toString(),
245245
};
246246

247-
await producer.send({
247+
await producer.send({
248248
topic: MATCH_TOPIC,
249249
messages: [
250250
{
@@ -395,7 +395,6 @@ export async function emitMatchEvent(matchId: string) {
395395
}
396396

397397
const roomObject = JSON.parse(data);
398-
console.log(roomObject);
399398

400399
if (roomObject.questionId && roomObject.roomId) {
401400
const newRoom = new Room({
@@ -408,11 +407,6 @@ export async function emitMatchEvent(matchId: string) {
408407
roomId: roomObject.roomId,
409408
questionId: roomObject.questionId,
410409
});
411-
console.log(newRoom);
412-
console.log(
413-
JSON.parse(roomObject.user1).userId,
414-
JSON.parse(roomObject.user2).userId);
415-
416410
await newRoom.save();
417411

418412
await redisClient.xAdd("match_events", "*", { data });

frontend/src/domain/usecases/HistoryUseCases.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class HistoryUseCases {
2525
|| !attemptStartedAt || attemptStartedAt.trim() === ""
2626
|| !attemptCompletedAt || attemptCompletedAt.trim() === ""
2727
|| !collaboratorId || collaboratorId.trim() === "") {
28-
throw new Error(`Missing Attempt Details, ${questionId} ${roomId} ${attemptStartedAt} ${attemptCompletedAt} ${collaboratorId} ${attemptCode}`);
28+
throw new Error("Missing Attempt Details");
2929
}
3030
await this.historyRepository.createOrUpdateUserHistory(questionId, roomId, attemptStartedAt, attemptCompletedAt, collaboratorId, attemptCode, true);
3131
}
@@ -42,7 +42,7 @@ export class HistoryUseCases {
4242
|| !attemptStartedAt || attemptStartedAt.trim() === ""
4343
|| !attemptCompletedAt || attemptCompletedAt.trim() === ""
4444
|| !collaboratorId || collaboratorId.trim() === "") {
45-
throw new Error(`Missing Attempt Details, ${questionId} ${roomId} ${attemptStartedAt} ${attemptCompletedAt} ${collaboratorId} ${attemptCode}`);
45+
throw new Error("Missing Attempt Details");
4646
}
4747
await this.historyRepository.createOrUpdateUserHistory(questionId, roomId, attemptStartedAt, attemptCompletedAt, collaboratorId, attemptCode, false);
4848
}

0 commit comments

Comments
 (0)