mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: closes #12246, direction is passed in as string as query param with new api call
cid isn't necessary in query params since its in path
This commit is contained in:
@@ -128,7 +128,7 @@ categoriesAPI.getTopics = async (caller, data) => {
|
||||
|
||||
let start = Math.max(0, parseInt(data.after || 0, 10));
|
||||
|
||||
if (data.direction === -1) {
|
||||
if (parseInt(data.direction, 10) === -1) {
|
||||
start -= infScrollTopicsPerPage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user