Skip to content

Commit 7954a24

Browse files
author
anmarhindi
committed
Change options for getRecordsByStaticSlice
1 parent 2fbfe1a commit 7954a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/base/data-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function getRecordsByStaticSlice(projectId: string,
2626
limit?: number,
2727
}, onResult: (result: any) => void) {
2828
const finalUrl = `${dataBrowserEndpoint}/${projectId}/records-by-static-slice/${sliceId}`;
29-
jsonFetchWrapper(finalUrl, FetchType.POST, onResult, JSON.stringify({ options }));
29+
jsonFetchWrapper(finalUrl, FetchType.POST, onResult, JSON.stringify({ "orderBy": options.orderBy, "offset": options.offset, "limit": options.limit }));
3030
}
3131

3232
export function createDataSlice(projectId: string, options: {

0 commit comments

Comments
 (0)