File tree Expand file tree Collapse file tree 3 files changed +0
-12
lines changed
src/back-end/lib/db/proposal Expand file tree Collapse file tree 3 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -1055,10 +1055,6 @@ export async function checkAndUpdateCWUOpportunityProcessingStatus(
1055
1055
. select ( "stat.status" )
1056
1056
. first ( ) ;
1057
1057
1058
- if ( ! currentOpportunity ) {
1059
- return ; // Opportunity not found
1060
- }
1061
-
1062
1058
const currentStatus = currentOpportunity . status ;
1063
1059
const totalProposalsCount = activeProposals . length ;
1064
1060
const evaluatedCount = activeProposals . filter (
Original file line number Diff line number Diff line change @@ -2127,10 +2127,6 @@ export async function checkAndUpdateSWUOpportunityProcessingStatus(
2127
2127
. select ( "statuses.status" )
2128
2128
. first ( ) ;
2129
2129
2130
- if ( ! currentOpportunity ) {
2131
- return ; // Opportunity not found
2132
- }
2133
-
2134
2130
const currentStatus = currentOpportunity . status ;
2135
2131
const totalProposalsCount = activeProposals . length ;
2136
2132
const evaluatedCount = activeProposals . filter (
Original file line number Diff line number Diff line change @@ -1780,10 +1780,6 @@ export async function checkAndUpdateTWUOpportunityProcessingStatus(
1780
1780
. select ( "statuses.status" )
1781
1781
. first ( ) ;
1782
1782
1783
- if ( ! currentOpportunity ) {
1784
- return ; // Opportunity not found
1785
- }
1786
-
1787
1783
const currentStatus = currentOpportunity . status ;
1788
1784
const totalProposalsCount = activeProposals . length ;
1789
1785
const evaluatedCount = activeProposals . filter (
You can’t perform that action at this time.
0 commit comments