From 454ed2ac5b1bb9c76211d969fbfee801f230b328 Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Wed, 18 Jun 2025 14:27:12 +0400 Subject: [PATCH] Qfix: ws filter in fixed tool (#9291) Signed-off-by: Alexey Zinoviev --- dev/tool/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/tool/src/index.ts b/dev/tool/src/index.ts index 5a472bbf86..b190d0e11e 100644 --- a/dev/tool/src/index.ts +++ b/dev/tool/src/index.ts @@ -60,6 +60,7 @@ import { updateField } from './workspace' import { AccountRole, isArchivingMode, + isDeletingMode, MeasureMetricsContext, metricsToString, SocialIdType, @@ -2450,7 +2451,7 @@ export function devTool ( ? await getWorkspacesInfoWithStatusByIds(accDb, wsUuids) : await getWorkspaces(accDb, null, null, null) const workspaces = rawWorkspaces - .filter((it) => !isArchivingMode(it.status.mode)) + .filter((it) => !isArchivingMode(it.status.mode) && !isDeletingMode(it.status.mode)) .sort((a, b) => (b.status.lastVisit ?? 0) - (a.status.lastVisit ?? 0)) toolCtx.info('Workspaces found', { count: workspaces.length })