Properly pass pagination values to the API

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-06-13 13:28:09 +02:00
parent e3a404a3ea
commit 45472cb218

View File

@@ -32,6 +32,7 @@ export class CommentApi {
async loadComments({ cardId, limit, offset }) {
const api = await axios.get(generateOcsUrl(`apps/deck/api/v1.0/cards`, 2) + `${cardId}/comments`, {
params: { limit, offset },
headers: { 'OCS-APIRequest': 'true' },
})
return api.data.ocs.data