From c87cf474d9a3091b0655822670825840fddcbcbb Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Fri, 29 Sep 2023 16:07:07 +0200 Subject: [PATCH] 4MB after all --- front/lib/api/workspace.ts | 4 ++-- .../20230929_enforce_1mb_even_for_upgraded_workspaces.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/front/lib/api/workspace.ts b/front/lib/api/workspace.ts index ce31dd71566c..70b3f4a70427 100644 --- a/front/lib/api/workspace.ts +++ b/front/lib/api/workspace.ts @@ -127,8 +127,8 @@ export async function upgradeWorkspace(workspaceId: number) { plan.limits.dataSources.count = -1; plan.limits.dataSources.documents.count = -1; - // Enforce 1MB limitation even for upgraded workspaces. - plan.limits.dataSources.documents.sizeMb = 1; + // Enforce 4MB limitation even for upgraded workspaces. + plan.limits.dataSources.documents.sizeMb = 4; plan.limits.dataSources.managed = true; plan.limits.largeModels = true; diff --git a/front/migrations/20230929_enforce_1mb_even_for_upgraded_workspaces.ts b/front/migrations/20230929_enforce_1mb_even_for_upgraded_workspaces.ts index 7f4cd3f0b65a..e411660e7186 100644 --- a/front/migrations/20230929_enforce_1mb_even_for_upgraded_workspaces.ts +++ b/front/migrations/20230929_enforce_1mb_even_for_upgraded_workspaces.ts @@ -37,7 +37,7 @@ async function main() { async function set1MBLimit(live: boolean, workspace: Workspace) { const plan = planForWorkspace(workspace); - plan.limits.dataSources.documents.sizeMb = 1; + plan.limits.dataSources.documents.sizeMb = 4; if (live) { await workspace.update({ plan: JSON.stringify(plan),