Skip to content

Commit

Permalink
Merge pull request #112 from Infomaniak/fix-has-more
Browse files Browse the repository at this point in the history
fix: Correctly pass cursor and hasMore to ValidApiResponse
  • Loading branch information
PhilippeWeidmann committed Mar 14, 2024
2 parents 173cd0e + b95f498 commit 8f0e1ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/InfomaniakCore/Networking/ApiFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ open class ApiFetcher {
page: apiResponse.page,
itemsPerPage: apiResponse.itemsPerPage,
responseAt: apiResponse.responseAt,
cursor: nil,
hasMore: false
cursor: apiResponse.cursor,
hasMore: apiResponse.hasMore
)
return ValidServerResponse(
statusCode: serverResponse.statusCode,
Expand Down

0 comments on commit 8f0e1ab

Please sign in to comment.