Remove update hooks
This commit is contained in:
parent
7d5d59dc0c
commit
50d2f31b7b
|
@ -118,14 +118,5 @@ class Member extends Model
|
|||
$model->bill_kind_id = null;
|
||||
}
|
||||
});
|
||||
|
||||
static::updated(function($model) {
|
||||
if ($model->nami_id !== null && $model->getOriginal()['nami_id'] !== null) {
|
||||
UpdateJob::dispatch($model, auth()->user());
|
||||
}
|
||||
if ($model->nami_id !== null && $model->getOriginal()['nami_id'] === null) {
|
||||
CreateJob::dispatch($model, auth()->user());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue