From ce6c97947ac2c0c696a8137db2ac9505c8700161 Mon Sep 17 00:00:00 2001 From: eisbilir Date: Sat, 30 Sep 2023 02:03:30 +0300 Subject: [PATCH 1/2] feat: update log --- src/domain/LegacyChallenge.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain/LegacyChallenge.ts b/src/domain/LegacyChallenge.ts index 984453f..466a197 100644 --- a/src/domain/LegacyChallenge.ts +++ b/src/domain/LegacyChallenge.ts @@ -882,7 +882,8 @@ class LegacyChallengeDomain { }); if (closestMatch == null) { - console.log("Corresponding Legacy Phase not found", phase, "Create new phase"); + console.log("Corresponding Legacy Phase not found - Create new phase"); + console.log(JSON.stringify(phase)); if (hasWinningSubmission) { console.log("Challenge already has a winning submission. Skipping phase creation"); continue; From 617036325865848fcdd5ba4bac00f6ce6a8d1549 Mon Sep 17 00:00:00 2001 From: eisbilir Date: Sat, 30 Sep 2023 13:24:02 +0300 Subject: [PATCH 2/2] feat: update log --- src/domain/LegacyChallenge.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/domain/LegacyChallenge.ts b/src/domain/LegacyChallenge.ts index 466a197..fbdf4f7 100644 --- a/src/domain/LegacyChallenge.ts +++ b/src/domain/LegacyChallenge.ts @@ -911,7 +911,9 @@ class LegacyChallengeDomain { _.remove(legacyPhasesCopy, (p) => p.projectPhaseId === closestMatch?.projectPhaseId); const legacyPhase = closestMatch as LegacyChallengePhase; - console.log("Corresponding Legacy Phase found", phase, legacyPhase); + console.log("Corresponding Legacy Phase found"); + console.log(JSON.stringify(phase)); + console.log(JSON.stringify(legacyPhase)); if (phase.phaseTypeId === PhaseTypeIds.IterativeReview && phase.phaseStatusId === PhaseStatusIds.Closed) { if (legacyPhase.phaseStatusId != PhaseStatusIds.Closed) { hasWinningSubmission = await this.updateSubmissionScore(