const usage

This commit is contained in:
Yuri Kuznetsov
2024-11-11 16:04:47 +02:00
parent 8d76eda198
commit 9e396b43a8
53 changed files with 147 additions and 104 deletions
@@ -29,6 +29,7 @@
namespace Espo\Controllers;
use Espo\Core\Name\Field;
use Espo\Tools\Notification\RecordService as Service;
use Espo\Core\Api\Request;
@@ -70,7 +71,7 @@ class Notification extends RecordBase
->withWhereAdded(
WhereItem
::createBuilder()
->setAttribute('createdAt')
->setAttribute(Field::CREATED_AT)
->setType(WhereItem\Type::AFTER)
->setValue($after)
->build()
+2 -1
View File
@@ -35,6 +35,7 @@ use Espo\Core\Api\Request;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\NotFound;
use Espo\Core\Field\DateTime;
use Espo\Core\Name\Field;
use Espo\Core\Record\SearchParamsFetcher;
use Espo\Core\Select\SearchParams;
@@ -171,7 +172,7 @@ class Stream
->withWhereAdded(
WhereItem
::createBuilder()
->setAttribute('createdAt')
->setAttribute(Field::CREATED_AT)
->setType(WhereItem\Type::AFTER)
->setValue($after)
->build()