Seal transaction limit coverage gaps
This commit is contained in:
@@ -30,7 +30,9 @@
|
||||
|
||||
$answer['success'] = 1;
|
||||
$answer['auto_approved'] = $auto_approve;
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
if ($new_id > 0) {
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
}
|
||||
|
||||
} catch (PDOException $e) {
|
||||
$answer['success'] = 0;
|
||||
|
||||
@@ -30,7 +30,9 @@
|
||||
|
||||
$answer['success'] = 1;
|
||||
$answer['auto_approved'] = $auto_approve;
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
if ($new_id > 0) {
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
}
|
||||
|
||||
} catch (PDOException $e) {
|
||||
$answer['success'] = 0;
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
|
||||
$answer['success'] = 1;
|
||||
$answer['auto_approved'] = $auto_approve;
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
if ($new_id > 0) {
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
}
|
||||
|
||||
} catch (PDOException $e) {
|
||||
$answer['success'] = 0;
|
||||
|
||||
Reference in New Issue
Block a user