mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:44:05 +00:00
Fix ClearPendingTenants bug
This commit is contained in:
parent
69e37ffa30
commit
c3fb301f9d
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($query->getModel('pending_since'), '<', $expirationDate->timestamp);
|
||||
$query->where($query->getModel()->getColumnForQuery('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