bug: fix the return value of countRows (#1186)

This commit is contained in:
QianZhu
2024-04-03 16:31:49 -07:00
committed by Weston Pace
parent 1d3325dcc5
commit 44d799ebb8

View File

@@ -458,7 +458,7 @@ export class RemoteTable<T = number[]> implements Table<T> {
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<void> {