update nami group
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Lang 2022-05-01 21:08:16 +02:00
parent b464ff75f6
commit c7eba9d7e8
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
namespace App\Member;
use App\Activity;
use App\Group;
use App\Setting\NamiSettings;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Str;
@ -61,7 +62,7 @@ class MemberRequest extends FormRequest
public function persistCreate(NamiSettings $settings): void
{
$this->merge(['group_id' => $settings->default_group_id]);
$this->merge(['group_id' => Group::where('nami_id', $settings->default_group_id)->firstOrFail()->id]);
$member = Member::create($this->input());
if ($this->input('has_nami')) {
CreateJob::dispatch($member);