Skip to content
/ flags Public

Commit 247e883

Browse files
imorlandStyleCIBot
andauthored
[2.x] feat: upgrade to Laravel 12 (#4268)
* bump laravel - let's see what the tests do... * chore: upgrade phpstan to 2.x, larastan to 3.x * Apply fixes from StyleCI * fix: phpstan 8.4 property hooks compat * chore: phpstan fixes after rebase * fix: test expectation * fix: flag query pgsql * fix: pgsql flag query --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent bd04a5a commit 247e883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Resource/FlagResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function query(Context $context): object
5454
{
5555
if ($context->listing(self::class)) {
5656
$query = Flag::query()->whenPgSql(
57-
fn (Builder $query) => $query->distinct('post_id')->orderBy('post_id'),
57+
fn (Builder $query) => $query->distinct('post_id')->orderBy('post_id')->orderBy('created_at', 'desc'),
5858
else: fn (Builder $query) => $query->groupBy('post_id')
5959
);
6060

0 commit comments

Comments
 (0)