diff --git a/src/experiments.ts b/src/experiments.ts index d6aea2c..c93d5b7 100644 --- a/src/experiments.ts +++ b/src/experiments.ts @@ -19,7 +19,7 @@ const Experiments: { [key in Experiment]: ExperimentConfig } = { export const experimentCheck = (experiment: Experiment, condition = true) => { console.log(`Checking experiment ${experiment}`); const experimentEnabled = - Experiments[experiment].percentage > Math.random() && condition; + (Experiments[experiment].percentage > Math.random()) && condition; console.log(`Experiment ${experiment} enabled: ${experimentEnabled}`); return experimentEnabled; }; diff --git a/src/server.ts b/src/server.ts index bf70d00..51bbdd7 100644 --- a/src/server.ts +++ b/src/server.ts @@ -520,7 +520,7 @@ const sentryWrapper = async (event: FetchEvent, test = false): Promise => 'content-type': 'text/html', 'cache-control': 'max-age=1' }, - status: 500 + status: 200 }); } })()