new api 2.0

This commit is contained in:
daniel 2024-01-23 17:21:02 +01:00
parent a11ebc6a57
commit 2a46720b80
1 changed files with 9 additions and 3 deletions

View File

@ -2,10 +2,10 @@
namespace PandoraFMS\Modules\Tags\Services;
use PandoraFMS\Modules\Tags\Entities\Tag;
use PandoraFMS\Modules\Tags\Repositories\TagRepository;
use PandoraFMS\Modules\Shared\Services\Audit;
use PandoraFMS\Modules\Tags\Entities\Tag;
use PandoraFMS\Modules\Tags\Repositories\TagRepository;
final class DeleteTagService
{
@ -21,6 +21,12 @@ final class DeleteTagService
$nameTag = $tag->getName();
$this->tagRepository->delete($idTag);
// TODO: XXX.
\db_process_delete_temp('ttag_module', 'id_tag', $idTag);
// TODO: XXX.
\db_process_delete_temp('ttag_policy_module', 'id_tag', $idTag);
$this->audit->write(
AUDIT_LOG_TAG_MANAGEMENT,
'Deleted tag '.$nameTag