Skip to content

Commit 5fdc038

Browse files
committed
func(Round): More search results on page, index year of round.
1 parent 5d03149 commit 5fdc038

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/Http/Controllers/RoundController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function listPublic(Request $request)
225225

226226
$search = $request->query('search');
227227
if ($search) {
228-
$rounds = Round::search($search)->paginate();
228+
$rounds = Round::search($search)->paginate(50);
229229
$rounds->load(['chain']);
230230
$rounds->loadCount('applications');
231231
} else {

app/Models/Round.php

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function toSearchableArray()
106106
{
107107
return [
108108
'name' => $this->name,
109+
'year' => date('Y', strtotime($this->applications_start_time)),
109110
'round_addr' => $this->round_addr,
110111
'match_token_address' => $this->match_token_address,
111112
'chain_id' => $this->chain_id,

0 commit comments

Comments
 (0)