Minor refactor

This commit is contained in:
David Bomba 2021-10-18 15:23:34 +11:00
parent 37aac0db03
commit 5ce87d00d9

View File

@ -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 */