feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
150 changed files with 578 additions and 5302 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);