Skip to content

Commit

Permalink
Merge pull request #25 from MZC-CSC/develop
Browse files Browse the repository at this point in the history
ncp cost bypassing
  • Loading branch information
MZC-CSC authored Dec 5, 2024
2 parents 7d38be6 + 72d5fb3 commit 14443ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/core/cost/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func (c *CostService) UpdateAndGetEstimateCost(param UpdateAndGetEstimateCostPar
possibleFetch = false
}
}
} else if strings.Contains(p.ProviderName, "ncp") {
log.Warn().Msgf("%s provider's cost is bypassing", p.ProviderName)
return
} else {
estimateCostInfos, err = c.costRepo.GetMatchingEstimateCostTx(ctx, p, param.TimeStandard, param.PricePolicy)
}
Expand Down

0 comments on commit 14443ff

Please sign in to comment.