error handling

This commit is contained in:
Wojtek Rybakiewicz
2023-11-10 11:54:33 +01:00
parent 9fb30b387f
commit af4a8cb645

View File

@@ -355,7 +355,11 @@ export const prices = (router: Router) => {
*/
function shouldRunTestFeature(percentOfTestFeatureEnv) {
return Math.floor(Math.random() * 100) < Number(percentOfTestFeatureEnv);
if (percentOfTestFeatureEnv) {
return Math.floor(Math.random() * 100) < Number(percentOfTestFeatureEnv);
} else {
return false;
}
}
async function handleByOracleGateway(req, res, dataServiceId, params) {