From c74d8cefc004074cefeada880cdadf5dc3f513f7 Mon Sep 17 00:00:00 2001 From: Saul Richardson Date: Wed, 8 Apr 2026 15:43:55 -0400 Subject: [PATCH] Fix apps and workflows commands without Retool DB --- src/commands/apps.ts | 6 ++++-- src/commands/workflows.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/commands/apps.ts b/src/commands/apps.ts index 4081291..85dd075 100644 --- a/src/commands/apps.ts +++ b/src/commands/apps.ts @@ -9,7 +9,7 @@ import { getAppsAndFolders, } from "../utils/apps"; import type { App } from "../utils/apps"; -import { getAndVerifyCredentialsWithRetoolDB } from "../utils/credentials"; +import { getAndVerifyCredentials, getAndVerifyCredentialsWithRetoolDB } from "../utils/credentials"; import { dateOptions } from "../utils/date"; import { collectTableName, @@ -52,7 +52,9 @@ const builder: CommandModule["builder"] = { }, }; const handler = async function (argv: any) { - const credentials = await getAndVerifyCredentialsWithRetoolDB(); + const credentials = argv.t + ? await getAndVerifyCredentialsWithRetoolDB() + : await getAndVerifyCredentials(); // fire and forget void logDAU(credentials); diff --git a/src/commands/workflows.ts b/src/commands/workflows.ts index c774cf8..43851f3 100644 --- a/src/commands/workflows.ts +++ b/src/commands/workflows.ts @@ -1,6 +1,6 @@ import { CommandModule } from "yargs"; -import { getAndVerifyCredentialsWithRetoolDB } from "../utils/credentials"; +import { getAndVerifyCredentials } from "../utils/credentials"; import { dateOptions } from "../utils/date"; import { logDAU } from "../utils/telemetry"; import { @@ -29,7 +29,7 @@ const builder: CommandModule["builder"] = { }, }; const handler = async function (argv: any) { - const credentials = await getAndVerifyCredentialsWithRetoolDB(); + const credentials = await getAndVerifyCredentials(); // fire and forget void logDAU(credentials);