Update ApiV1Dot1Controller

pull/4563/head
Daniel Supernault 2023-07-30 04:01:29 -06:00
rodzic f54cf0b2d7
commit 3b885709b8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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;