Skip to content

Commit b017f8a

Browse files
JanSmolkodziraf
authored andcommitted
fix: fix count fn of Resource
1 parent 71638b9 commit b017f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Resource extends BaseResource {
6666
const qb = this.getQueryBuilder();
6767
convertFilter(qb, filter);
6868

69-
const result = await qb.count() as any;
69+
const result = await qb.count({ count: '*' }).first() as any;
7070

7171
return result?.count ? Number(result.count) : 0;
7272
}

0 commit comments

Comments
 (0)