From 50d2f31b7bde706f15dfa58faae48a63dcaa13d7 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 23 Jun 2021 01:45:59 +0200 Subject: [PATCH] Remove update hooks --- app/Member/Member.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/Member/Member.php b/app/Member/Member.php index b210ed9a..e6c3ac18 100644 --- a/app/Member/Member.php +++ b/app/Member/Member.php @@ -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()); - } - }); } }