diff --git a/src/utils/clients.ts b/src/utils/clients.ts index 0fb722e..4a8d78a 100644 --- a/src/utils/clients.ts +++ b/src/utils/clients.ts @@ -1,5 +1,4 @@ import { - callAuth, callDaemon, loadConfig, getDaemonBaseUrl, @@ -57,7 +56,7 @@ export function getClientsFromStore(store: { getState(): any }): ClientEntry[] { * Use this when running remotely (CLI in remote mode). */ export async function getClientsList(): Promise { - const result = await callAuth("/clients"); + const result = await callDaemon("/clients"); const clients = ( result.output as | { @@ -108,7 +107,7 @@ export async function addDaemonClient( return { client, created: false }; } - const result = await callAuth("/clients/add", { + const result = await callDaemon("/clients/add", { method: "POST", body: { name, id: derivedId }, }); @@ -160,7 +159,7 @@ export async function listClientsAction(): Promise { export async function deleteClientAction(id: string): Promise { await ensureDaemonRunning(); - const result = await callAuth("/clients/delete", { + const result = await callDaemon("/clients/delete", { method: "POST", body: { id }, });