Fix settings save 500 by dropping Events-only preference columns.
Deploy Ladill Transfer / deploy (push) Successful in 33s
Deploy Ladill Transfer / deploy (push) Successful in 33s
Transfer qr_settings only stores notify_email and product_updates. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -75,8 +75,6 @@ class AccountController extends Controller
|
||||
$data = $request->validate([
|
||||
'notify_email' => ['nullable', 'email', 'max:255'],
|
||||
'product_updates' => ['nullable', 'boolean'],
|
||||
'notify_registrations' => ['nullable', 'boolean'],
|
||||
'notify_payouts' => ['nullable', 'boolean'],
|
||||
]);
|
||||
|
||||
QrSetting::updateOrCreate(
|
||||
@@ -84,8 +82,6 @@ class AccountController extends Controller
|
||||
[
|
||||
'notify_email' => $data['notify_email'] ?? null,
|
||||
'product_updates' => $request->boolean('product_updates'),
|
||||
'notify_registrations' => $request->boolean('notify_registrations'),
|
||||
'notify_payouts' => $request->boolean('notify_payouts'),
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user