Skip to content

Commit 79cac0a

Browse files
authored
feat: add order by track_id (#461)
Signed-off-by: romanetar <roman_ag@hotmail.com>
1 parent c3facd8 commit 79cac0a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitLocationsApiController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ function () {
512512
'end_date',
513513
'id',
514514
'created',
515+
'track_id'
515516
];
516517
},
517518
function ($filter) use($summit_id, $location, $published){
@@ -1862,4 +1863,4 @@ public function copy(LaravelRequest $request, $source_summit_id, $target_summit_
18621863
return $this->ok();
18631864
});
18641865
}
1865-
}
1866+
}

tests/OAuth2SummitLocationsApiTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ public function testCurrentSummitPublishedLocationEventsWithFilter()
355355
'location_id' => self::$mainVenue->getId(),
356356
'filter' => [
357357
'start_date>='.(time())
358-
]
358+
],
359+
'order' => '-track_id'
359360
];
360361

361362
$response = $this->action
@@ -1677,4 +1678,4 @@ public function testCopyLocation(){
16771678
$this->assertResponseStatus(412);
16781679
}
16791680

1680-
}
1681+
}

0 commit comments

Comments
 (0)