diff --git a/controllers/publics/Api.php b/controllers/publics/Api.php index 7760c7f..6c25da5 100644 --- a/controllers/publics/Api.php +++ b/controllers/publics/Api.php @@ -327,7 +327,18 @@ namespace controllers\publics; } $at = (new \DateTime())->format('Y-m-d H:i:s'); - $scheduled_id = $this->internal_scheduled->create($this->user['id'], $at, $text, $id_phone); + + $scheduled_id = $this->internal_scheduled->create( + $this->user['id'], + $at, + $text, + $id_phone, + null, + false, + false, + null, + [['number' => $to, 'data' => '[]']] + ); if (!$scheduled_id) { $return = self::DEFAULT_RETURN; diff --git a/models/SystemVQueue.php b/models/SystemVQueue.php index 8a9a782..c563577 100644 --- a/models/SystemVQueue.php +++ b/models/SystemVQueue.php @@ -70,7 +70,7 @@ class SystemVQueue implements Queue $this->get_queue(); $error_code = null; - $success = msg_send($this->queue, $tag, $message, true, false, $error_code); + $success = msg_send($this->queue, $tag, $message, true, true, $error_code); if (!$success) { throw new \Exception('Impossible to send the message on system V queue, error code : ' . $error_code);