Skip to content

Commit aa51d3d

Browse files
authored
Count fix (#23)
1 parent 86b7c61 commit aa51d3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/RequestParameters/CountParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ protected function areArgumentsValid(): void
2727

2828
protected function appendQuery(): void
2929
{
30-
$this->builder->select(DB::raw('count(*) as count'));
30+
$this->builder->addSelect(DB::raw('count(*) as count'));
3131
}
3232
}

src/RequestParameters/ReturnsParameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public static function getParameterName(): string
1313

1414
protected function appendQuery(): void
1515
{
16-
$this->builder->select($this->arguments);
16+
$this->builder->addSelect($this->arguments);
1717
}
1818
}

0 commit comments

Comments
 (0)