Skip to content

Commit

Permalink
fix: clone schema and indexes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
monken committed Apr 24, 2023
1 parent 7e1906f commit ee15cde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class PaginationResponse<T extends AttributeMap = AttributeMap> {
}

private clone<K extends AttributeMap>(args: Partial<PaginationResponseOptions<K>>): PaginationResponse<K | T> {
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<K | T>({
client,
key,
Expand All @@ -222,6 +222,8 @@ export class PaginationResponse<T extends AttributeMap = AttributeMap> {
from,
limit,
method,
schema,
indexes,
...args,
});
}
Expand Down

0 comments on commit ee15cde

Please sign in to comment.