mirror of
https://github.com/alexgo-io/redstone-cache-layer.git
synced 2026-01-12 16:53:15 +08:00
error handling
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user