Fix broken query "created_at_before" and "updated_at_before"

This commit is contained in:
James Cole
2022-04-13 14:11:36 +02:00
parent 7b830a69d9
commit 0fea3a5a85
2 changed files with 5 additions and 3 deletions

View File

@@ -555,7 +555,9 @@ trait TimeCollection
*/
public function setObjectBefore(Carbon $date, string $field): GroupCollectorInterface
{
die('a');
$afterStr = $date->format('Y-m-d 00:00:00');
$this->query->where(sprintf('transaction_journals.%s', $field), '<=', $afterStr);
return $this;
}
/**