rename gt and lt to before and after (#888)

This commit is contained in:
notmd
2023-01-22 19:51:07 +01:00
committed by GitHub
parent 43e7d4846b
commit b8672e5986
+1 -1
View File
@@ -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()}`;