Remove updated hook if member is not in nami
This commit is contained in:
parent
7954efe1b0
commit
fb1bdca780
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue