This commit is contained in:
James Cole
2019-09-14 06:22:02 +02:00
parent ec43c9999a
commit f49ef1622e
5 changed files with 68 additions and 1 deletions

View File

@@ -288,6 +288,16 @@ class Search implements SearchInterface
$after = new Carbon($modifier['value']);
$collector->setAfter($after);
break;
case 'created_at':
Log::debug(sprintf('Set "%s" using collector with value "%s"', $modifier['type'], $modifier['value']));
$createdAt = new Carbon($modifier['value']);
$collector->setCreatedAt($createdAt);
break;
case 'updated_at':
Log::debug(sprintf('Set "%s" using collector with value "%s"', $modifier['type'], $modifier['value']));
$updatedAt = new Carbon($modifier['value']);
$collector->setUpdatedAt($updatedAt);
break;
}
}
$collector->setAccounts($totalAccounts);