From 339e5773c6e9278bf419869aa18a47f18f2f2b53 Mon Sep 17 00:00:00 2001 From: Andy Bitz Date: Wed, 22 May 2024 19:13:03 -0400 Subject: [PATCH] Do not use default flags --- packages/web/src/server/index.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/web/src/server/index.ts b/packages/web/src/server/index.ts index 99c05b8..2e600bf 100644 --- a/packages/web/src/server/index.ts +++ b/packages/web/src/server/index.ts @@ -116,14 +116,6 @@ export async function track( keys.forEach((key) => { flagValuesToReport[key] = allFlagValues[key]; }); - } else { - // If no `options.flags` was provided, we'll take the first 5 flags - // from the `allFlagValues` list and report them. - const MAX_FLAG_KEYS = 5; - const keys = Object.keys(allFlagValues); - keys.slice(0, MAX_FLAG_KEYS).forEach((key) => { - flagValuesToReport[key] = allFlagValues[key]; - }); } const body = {