Seal transaction limit coverage gaps
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
require_once '../../../assets/utils/db_auth.php';
|
||||
require_role($user_role, ['owner', 'admin', 'staff']);
|
||||
require_once '../../../assets/utils/classes/PaymentBillingManager.php';
|
||||
require_once '../../../assets/utils/classes/UsageGuard.php';
|
||||
|
||||
try {
|
||||
$mgr = new PaymentBillingManager($pdo2, $company_id);
|
||||
@@ -49,6 +50,7 @@
|
||||
$answer['success'] = 1;
|
||||
$answer['new_id'] = $new_id;
|
||||
$answer['message'] = 'Payment billing created.';
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
exit(json_encode($answer));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user