From 615ccda4c3d4fdac0d951a8615386d0d5e114db2 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Wed, 4 Mar 2026 17:19:59 +0700 Subject: [PATCH] [core] ChatWoot - ParseMS typing --- src/apps/chatwoot/cli/utils/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/chatwoot/cli/utils/options.ts b/src/apps/chatwoot/cli/utils/options.ts index 3c895f70..809ae777 100644 --- a/src/apps/chatwoot/cli/utils/options.ts +++ b/src/apps/chatwoot/cli/utils/options.ts @@ -6,7 +6,7 @@ import { Locale } from '@waha/apps/chatwoot/i18n/locale'; * Parse human string into milliseconds */ export function ParseMS(value: string) { - const duration = ms(value); + const duration = ms(value as ms.StringValue); if (duration == null) throw new Error(`Invalid duration: "${value}"`); if (duration < 0) throw new Error(`Duration cannot be negative: "${value}"`); return duration;