Remove update hooks

This commit is contained in:
philipp lang 2021-06-23 01:45:59 +02:00
parent 7d5d59dc0c
commit 50d2f31b7b
1 changed files with 0 additions and 9 deletions

View File

@ -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());
}
});
}
}