Remove updated hook if member is not in nami

This commit is contained in:
philipp lang 2021-07-04 22:17:04 +02:00
parent 7954efe1b0
commit fb1bdca780
1 changed files with 0 additions and 6 deletions

View File

@ -129,12 +129,6 @@ class Member extends Model
}
public static function booted() {
static::updating(function($model) {
if ($model->nami_id === null) {
$model->bill_kind_id = null;
}
});
static::deleting(function($model) {
$model->payments->each->delete();
});