mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-10 11:50:44 +08:00
rename gt and lt to before and after (#888)
This commit is contained in:
@@ -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()}`;
|
||||
|
||||
Reference in New Issue
Block a user