From f0cd43da6926889d3acd9db12f416cfee2ae2e21 Mon Sep 17 00:00:00 2001 From: QianZhu Date: Wed, 3 Apr 2024 16:31:49 -0700 Subject: [PATCH] bug: fix the return value of countRows (#1186) --- node/src/remote/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/remote/index.ts b/node/src/remote/index.ts index 81dc8b54..8fc4178d 100644 --- a/node/src/remote/index.ts +++ b/node/src/remote/index.ts @@ -458,7 +458,7 @@ export class RemoteTable implements Table { const result = await this._client.post(`/v1/table/${this._name}/count_rows/`, { predicate: filter }) - return (await result.body())?.stats?.num_rows + return (await result.body()) } async delete (filter: string): Promise {