Minor refactor
This commit is contained in:
parent
37aac0db03
commit
5ce87d00d9
1 changed files with 1 additions and 3 deletions
|
|
@ -285,10 +285,8 @@ class BaseRepository
|
|||
}
|
||||
}
|
||||
|
||||
$model->load('invitations');
|
||||
|
||||
/* If no invitations have been created, this is our fail safe to maintain state*/
|
||||
if ($model->invitations->count() == 0)
|
||||
if ($model->invitations()->count() == 0)
|
||||
$model->service()->createInvitations();
|
||||
|
||||
/* Recalculate invoice amounts */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue