Commit b24ce746 authored by Ben Hayward's avatar Ben Hayward

Returning null for null paging token

1 merge request!341[Sprint/NuancedNumbat](fix): Null paging token #866
Pipeline #84155872 passed with stages
in 9 minutes and 42 seconds
......@@ -118,9 +118,10 @@ class Repository
$contributions[] = $contribution;
}
return $rows ?: [
$pagingStateToken = $rows->pagingStateToken() ?: null;
return [
'contributions' => $contributions,
'token' => $rows->pagingStateToken()
'token' => $pagingStateToken
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment