Bill transfer storage monthly with a 15-day grace period before deletion.
Deploy Ladill Transfer / deploy (push) Successful in 51s
Deploy Ladill Transfer / deploy (push) Successful in 51s
Files stay available while wallet renewals succeed each month. Failed renewals keep files for TRANSFER_GRACE_PERIOD_DAYS (default 15) before automatic cleanup. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,10 +52,7 @@ class AccountController extends Controller
|
||||
|
||||
$activeTransfers = Transfer::query()
|
||||
->where('user_id', $user->id)
|
||||
->where('status', Transfer::STATUS_ACTIVE)
|
||||
->where(function ($query) {
|
||||
$query->whereNull('expires_at')->orWhere('expires_at', '>', now());
|
||||
})
|
||||
->accessible()
|
||||
->orderByDesc('storage_bytes')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user