From 03f9227621b7ec85ae6647705e477a165d1d9ec8 Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Thu, 16 Jan 2025 13:10:44 +0100 Subject: [PATCH] chore: remove dust wId global from tracker limit --- front/pages/api/w/[wId]/spaces/[spaceId]/trackers/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/front/pages/api/w/[wId]/spaces/[spaceId]/trackers/index.ts b/front/pages/api/w/[wId]/spaces/[spaceId]/trackers/index.ts index 20ab969dd156..23a3d4ae4e59 100644 --- a/front/pages/api/w/[wId]/spaces/[spaceId]/trackers/index.ts +++ b/front/pages/api/w/[wId]/spaces/[spaceId]/trackers/index.ts @@ -12,13 +12,12 @@ import { withSessionAuthenticationForWorkspace } from "@app/lib/api/auth_wrapper import { withResourceFetchingFromRoute } from "@app/lib/api/resource_wrappers"; import type { Authenticator } from "@app/lib/auth"; import { getFeatureFlags } from "@app/lib/auth"; -import { PRODUCTION_DUST_WORKSPACE_ID } from "@app/lib/registry"; import type { SpaceResource } from "@app/lib/resources/space_resource"; import { TrackerConfigurationResource } from "@app/lib/resources/tracker_resource"; import { apiError } from "@app/logger/withlogging"; -const TRACKER_LIMIT_BY_WORKSPACE = { - [md5(PRODUCTION_DUST_WORKSPACE_ID)]: -1, +const TRACKER_LIMIT_BY_WORKSPACE: Record = { + baf50ff50aa28e3b3ebb09bf21fbc29d: -1, // dust US workspace "9904970eeaa283f18656c6e60b66cb19": 3, };