fix toggleWebNotifications method name

This commit is contained in:
2026-03-26 09:54:32 +01:00
parent 368465b8f3
commit 3528df0571
+1 -1
View File
@@ -364,7 +364,7 @@ class UserController extends Controller
} }
} }
public function togglWebNotifications(Request $request, int $id): JsonResponse { public function toggleWebNotifications(Request $request, int $id): JsonResponse {
try { try {
$user = User::findOrFail($id); $user = User::findOrFail($id);
$user->web_notifications = !$user->web_notifications ? 0 : 1; $user->web_notifications = !$user->web_notifications ? 0 : 1;