From c65a263d7ef8c18a9321d8c86cbd5d65c4397987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Gu=CC=88ell=20Segarra?= Date: Thu, 19 Oct 2023 12:39:15 +0200 Subject: [PATCH] fix: Adjust wc method call --- lib/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.ts b/lib/client.ts index cddce38..8ae83bf 100644 --- a/lib/client.ts +++ b/lib/client.ts @@ -47,7 +47,7 @@ export class Client { const { service = "object", options = {} } = data; const { host, token } = this; - if (service != "common" && service != "db" && !token) { + if (service != "common" && service != "db" && service != "wc" && !token) { throw new Error("You must login first"); }