From b8672e598606691b6aa22c459745d739c5dd15ba Mon Sep 17 00:00:00 2001 From: notmd <33456881+notmd@users.noreply.github.com> Date: Mon, 23 Jan 2023 01:51:07 +0700 Subject: [PATCH] rename gt and lt to before and after (#888) --- website/src/lib/oasst_api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/lib/oasst_api_client.ts b/website/src/lib/oasst_api_client.ts index cd5e1abc..16f8ccd2 100644 --- a/website/src/lib/oasst_api_client.ts +++ b/website/src/lib/oasst_api_client.ts @@ -221,7 +221,7 @@ export class OasstApiClient { // pagination direction but they both take the same cursor value. // Depending on direction, pick the right query param. if (cursor !== "") { - params.append(direction === "forward" ? "gt" : "lt", cursor); + params.append(direction === "forward" ? "after" : "before", cursor); } const BASE_URL = `/api/v1/users/cursor`; const url = `${BASE_URL}/?${params.toString()}`;