diff --git a/app/Http/Controllers/BreathingExerciseController.php b/app/Http/Controllers/BreathingExerciseController.php index 337231a..1bb11fb 100644 --- a/app/Http/Controllers/BreathingExerciseController.php +++ b/app/Http/Controllers/BreathingExerciseController.php @@ -26,7 +26,9 @@ public function store(Request $request) ]); // Give XP (e.g., +10 per session) - $user->increment('xp', 10); + if ($data['created_at'] == null) { + $user->increment('xp', 10); + } return response()->json([ 'message' => 'Exercise saved',