1
0
Fork 0

Update ApiV1Dot1Controller

This commit is contained in:
Daniel Supernault 2023-07-30 04:01:29 -06:00 committed by chris
parent 0bc4b457f5
commit e1255c07fb
1 changed files with 4 additions and 2 deletions

View File

@ -869,8 +869,10 @@ class ApiV1Dot1Controller extends Controller
]);
$field = $request->input('field');
$value = $request->input('value');
$settings = UserSetting::whereUserId($request->user()->id)->first();
if(!$settings) {
$settings = UserSetting::firstOrCreate([
'user_id' => $request->user()->id
]);
if(!$settings->other) {
$other = [];
} else {
$other = $settings->other;