From a1a2193362a0ddb9b58ef5dd972aa2605fb8fd5d Mon Sep 17 00:00:00 2001 From: kiddyu <58631254@qq.com> Date: Fri, 9 Aug 2024 00:48:59 +0800 Subject: [PATCH] fix: update `skip` and `take` methods returns --- src/query-builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/query-builder.js b/src/query-builder.js index e20c2e4..da581ff 100644 --- a/src/query-builder.js +++ b/src/query-builder.js @@ -86,11 +86,11 @@ class QueryBuilder { } skip(...args) { - return this.connector.offset(...args); + return this.offset(...args); } take(...args) { - return this.connector.limit(...args); + return this.limit(...args); } async chunk(count, callback) {