mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 01:50:38 +00:00
set/update/delete billing alert
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
namespace Support\Scheduler\Actions;
|
||||
|
||||
use DB;
|
||||
@@ -12,7 +11,7 @@ class ReportUsageAction
|
||||
Subscription::whereIn('type', ['pre-paid', 'auto-renew'])
|
||||
->where('status', 'active')
|
||||
->cursor()
|
||||
->each(function($subscription) {
|
||||
->each(function ($subscription) {
|
||||
$this->recordBandwidth($subscription);
|
||||
$this->recordStorageCapacity($subscription);
|
||||
});
|
||||
@@ -46,4 +45,4 @@ class ReportUsageAction
|
||||
// Record storage capacity usage
|
||||
$subscription->recordUsage('bandwidth', $amount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user