This commit is contained in:
Yuri Kuznetsov
2024-02-26 15:05:20 +02:00
parent 0ec428b1ed
commit a201f61eeb
5 changed files with 5 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ class EntryPointManager
$className = $this->getClassName($name);
if (!$className) {
throw new NotFoundSilent("Entry point '{$name}' not found.");
throw new NotFoundSilent("Entry point '$name' not found.");
}
$noAuth = false;
@@ -79,7 +79,7 @@ class EntryPointManager
$className = $this->getClassName($name);
if (!$className) {
throw new NotFoundSilent("Entry point '{$name}' not found.");
throw new NotFoundSilent("Entry point '$name' not found.");
}
$entryPoint = $this->injectableFactory->create($className);

View File

@@ -31,21 +31,18 @@ namespace Espo\Repositories;
use Espo\Entities\Import as ImportEntity;
use Espo\Entities\ImportEntity as ImportEntityEntity;
use Espo\ORM\Collection;
use Espo\ORM\Entity;
use Espo\ORM\Query\Select as Query;
use Espo\ORM\Query\SelectBuilder;
use Espo\Entities\Attachment as AttachmentEntity;
use Espo\Core\Repositories\Database;
use Espo\Entities\ImportError;
use LogicException;
/**
* @extends Database<\Espo\Entities\Import>
* @extends Database<ImportEntity>
*/
class Import extends Database
{
@@ -76,8 +73,6 @@ class Import extends Database
throw new LogicException();
}
$param = null;
switch ($link) {
case 'imported':
$param = 'isImported';

View File

@@ -114,11 +114,11 @@ class Email extends Record
return $entity;
}
private function markAsRead(string $id, ?string $userId = null): void
private function markAsRead(string $id): void
{
$service = $this->injectableFactory->create(InboxService::class);
$service->markAsRead($id, $userId);
$service->markAsRead($id);
}
/**

View File

@@ -31,7 +31,6 @@ namespace Espo\Services;
use Espo\Repositories\Import as Repository;
use Espo\Entities\Import as ImportEntity;
use Espo\Core\Acl\Table;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\NotFoundSilent;
@@ -74,7 +73,6 @@ class Import extends Record
->withSearchParams($searchParams)
->build();
/** @var \Espo\ORM\Collection<\Espo\ORM\Entity> $collection */
$collection = $this->getImportRepository()->findResultRecords($entity, $link, $query);
$listLoadProcessor = $this->injectableFactory->create(ListLoadProcessor::class);

View File

@@ -77,11 +77,8 @@ class Note extends Record
$userTeamIdList = $this->user->getTeamIdList();
/** @var string[] $userIdList */
$userIdList = $entity->getLinkMultipleIdList('users');
/** @var string[] $portalIdList */
$portalIdList = $entity->getLinkMultipleIdList('portals');
/** @var string[] $teamIdList */
$teamIdList = $entity->getLinkMultipleIdList('teams');
/** @var iterable<UserEntity> $targetUserList */