mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:14:03 +00:00
Dynamically get virtual column name in ClearPendingTenants
This commit is contained in:
parent
789a05b125
commit
69e37ffa30
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class ClearPendingTenants extends Command
|
|||
->query()
|
||||
->onlyPending()
|
||||
->when($originalExpirationDate->notEqualTo($expirationDate), function (Builder $query) use ($expirationDate) {
|
||||
$query->where('data->pending_since', '<', $expirationDate->timestamp);
|
||||
$query->where($query->getModel('pending_since'), '<', $expirationDate->timestamp);
|
||||
})
|
||||
->get()
|
||||
->each // Trigger the model events by deleting the tenants one by one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue