From ee15cde7f6d73d797cb4db80f5739e4a6f489c11 Mon Sep 17 00:00:00 2001 From: Moritz Onken Date: Mon, 24 Apr 2023 09:39:37 -0400 Subject: [PATCH] fix: clone schema and indexes #2 --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bd2f313..4a82385 100644 --- a/src/index.ts +++ b/src/index.ts @@ -213,7 +213,7 @@ export class PaginationResponse { } private clone(args: Partial>): PaginationResponse { - const { _limit: limit, _from: from, _query: query, _filter: filter, client, key, method } = this; + const { _limit: limit, _from: from, _query: query, _filter: filter, client, key, method, schema, indexes } = this; return new PaginationResponse({ client, key, @@ -222,6 +222,8 @@ export class PaginationResponse { from, limit, method, + schema, + indexes, ...args, }); }