f
This commit is contained in:
@@ -425,6 +425,9 @@ func (s *ApiApplicationServiceImpl) callExternalApi(ctx context.Context, cmd *co
|
||||
zap.String("error_type", mappedErrorType),
|
||||
zap.Error(err))
|
||||
|
||||
if errors.Is(err, processors.ErrContactBusiness) {
|
||||
return "", ErrContactBusiness
|
||||
}
|
||||
if mappedErrorType == entities.ApiCallErrorInvalidParam {
|
||||
return "", ErrInvalidParam
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user