Fix bug with misspelt function update_notification_retries
This commit is contained in:
parent
23dc109764
commit
c84f985d01
|
@ -98,7 +98,7 @@ class Queue
|
||||||
$this->set_task_status($this->all_status['ready']); // Make task available for release
|
$this->set_task_status($this->all_status['ready']); // Make task available for release
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_notfication_retries($task_id, $subscriber_id) {
|
public function update_notification_retries($task_id, $subscriber_id) {
|
||||||
global $mysqli;
|
global $mysqli;
|
||||||
$stmt = $mysqli->prepare("UPDATE queue_notify SET retries = retries+1 WHERE task_id = ? AND subscriber_id = ?");
|
$stmt = $mysqli->prepare("UPDATE queue_notify SET retries = retries+1 WHERE task_id = ? AND subscriber_id = ?");
|
||||||
$stmt->bind_param("ii", $task_id, $subscriber_id);
|
$stmt->bind_param("ii", $task_id, $subscriber_id);
|
||||||
|
@ -131,7 +131,7 @@ class Queue
|
||||||
if ($typeID == 1) {
|
if ($typeID == 1) {
|
||||||
$msg = str_replace("#s", $result['firstname'], $result2['template_data2']);
|
$msg = str_replace("#s", $result['firstname'], $result2['template_data2']);
|
||||||
if ( ! Notification::submit_queue_telegram($result['userID'], $result['firstname'], $msg) ) {
|
if ( ! Notification::submit_queue_telegram($result['userID'], $result['firstname'], $msg) ) {
|
||||||
Queue::update_notfication_retries($result['task_id'], $result['subscriber_id']); // Sent
|
Queue::update_notification_retries($result['task_id'], $result['subscriber_id']); // Sent
|
||||||
} else {
|
} else {
|
||||||
Queue::delete_notification($result['task_id'], $result['subscriber_id']); // Failed
|
Queue::delete_notification($result['task_id'], $result['subscriber_id']); // Failed
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue