From 7b5c23c3e19782cb1543545cde6957d7bdd7de4f Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Tue, 30 Jun 2026 13:21:33 +0330 Subject: [PATCH] fix: description not null --- app/Http/Controllers/BreathingExerciseController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/BreathingExerciseController.php b/app/Http/Controllers/BreathingExerciseController.php index 7272c41..25de9f3 100644 --- a/app/Http/Controllers/BreathingExerciseController.php +++ b/app/Http/Controllers/BreathingExerciseController.php @@ -92,6 +92,8 @@ public function getTemplates() } else { $template->image_url = null; } + // Old app expects a non-null description string. + $template->description = $template->description ?? ''; return $template; }); @@ -109,6 +111,8 @@ public function getUserTemplates() } else { $template->image_url = null; } + // Old app expects a non-null description string. + $template->description = $template->description ?? ''; return $template; });