feature/cierres #31

Merged
aldarien merged 462 commits from feature/cierres into develop 2025-09-11 17:05:18 -03:00
221 changed files with 769 additions and 10137 deletions
Showing only changes of commit d5b8c7f877 - Show all commits

View File

@ -437,8 +437,8 @@ class Toku extends Ideal\Service
$query = $this->connection->getQueryBuilder()
->select('secret')
->from('toku_webhooks')
->where('enabled = ? AND events LIKE ?');
$params = [true, "%\"{$eventType}\"%"];
->where('enabled = ? AND JSON_SEARCH(events, "one", ?) IS NOT NULL');
$params = [true, $eventType];
$this->logger->debug($query, $params);
$statement = $this->connection->prepare($query);
$statement->execute($params);