NODE JS introduction: socket polling
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
$answer['new_id'] = $new_id;
|
||||
$answer['message'] = 'Receipt posted.';
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
require_once '../../../assets/utils/notify_node.php';
|
||||
notify_node('receipt_posted', ['id' => $new_id], $company_id);
|
||||
exit(json_encode($answer));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user