Skip to content

Commit a44ae92

Browse files
committed
Fix pagination header in response
1 parent 968a3f6 commit a44ae92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/ChallengeService.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,10 @@ async function searchChallenges(currentUser, criteria) {
724724
},
725725
};
726726
}
727+
727728
// Extract data from hits
728-
const total = docs.hits.total;
729+
const total = docs.hits.total.value;
730+
729731
let result = _.map(docs.hits.hits, (item) => item._source);
730732

731733
// Hide privateDescription for non-register challenges

0 commit comments

Comments
 (0)