Skip to content

Commit 435f865

Browse files
committed
fix: removed unnecessary checks
1 parent bbf28a2 commit 435f865

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/back-end/lib/db/proposal/code-with-us.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,10 +1055,6 @@ export async function checkAndUpdateCWUOpportunityProcessingStatus(
10551055
.select("stat.status")
10561056
.first();
10571057

1058-
if (!currentOpportunity) {
1059-
return; // Opportunity not found
1060-
}
1061-
10621058
const currentStatus = currentOpportunity.status;
10631059
const totalProposalsCount = activeProposals.length;
10641060
const evaluatedCount = activeProposals.filter(

src/back-end/lib/db/proposal/sprint-with-us.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2127,10 +2127,6 @@ export async function checkAndUpdateSWUOpportunityProcessingStatus(
21272127
.select("statuses.status")
21282128
.first();
21292129

2130-
if (!currentOpportunity) {
2131-
return; // Opportunity not found
2132-
}
2133-
21342130
const currentStatus = currentOpportunity.status;
21352131
const totalProposalsCount = activeProposals.length;
21362132
const evaluatedCount = activeProposals.filter(

src/back-end/lib/db/proposal/team-with-us.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,10 +1780,6 @@ export async function checkAndUpdateTWUOpportunityProcessingStatus(
17801780
.select("statuses.status")
17811781
.first();
17821782

1783-
if (!currentOpportunity) {
1784-
return; // Opportunity not found
1785-
}
1786-
17871783
const currentStatus = currentOpportunity.status;
17881784
const totalProposalsCount = activeProposals.length;
17891785
const evaluatedCount = activeProposals.filter(

0 commit comments

Comments
 (0)