fix carbon
This commit is contained in:
1 parent
3af30b34b5
commit
d0915a611e
12 files changed
+282
-44
No files matched your search
@@ -107,11 +107,11 @@ class GenerateSetting
|
||||
|
||||
foreach ($multilines as $multiline) {
|
||||
|
||||
$is_active = in_array($multiline->id, [1, 2, 9, 10, 16, 17, 22, 23]) ? 1 : 0;
|
||||
$is_active = in_array($multiline->id, [1, 2, 9, 10, 16, 17, 22, 23]) ? true : false;
|
||||
|
||||
BettypeUser::updateOrCreate(
|
||||
['sport_id' => $multiline->sport_id, 'user_id' => $user->id, 'multiline_setting_id' => $multiline->id],
|
||||
['is_active' => $multiline->is_active, 'sorting' => $multiline->sorting],
|
||||
['is_active' => $is_active, 'sorting' => $multiline->sorting],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user