@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ]); |
82 | 82 | $update = "completed"; |
83 | 83 | $update_key = "status"; |
84 | - }else{ |
|
84 | + } else{ |
|
85 | 85 | $request->validate([ |
86 | 86 | "content" => "required|string|filled", |
87 | 87 | ]); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $this->storage->update($project_id, $project); |
100 | 100 | return response()->json(["status" => "success"], 200); |
101 | - }else{ |
|
101 | + } else{ |
|
102 | 102 | return response()->json(["status" => "error", "error" => "We couldn't find the task that you wanted to update."], 200); |
103 | 103 | } |
104 | 104 | } else { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $project->tasks = array_values($project->tasks); |
123 | 123 | $this->storage->update($project_id, $project); |
124 | 124 | return response()->json(["status" => "success"], 200); |
125 | - }else{ |
|
125 | + } else{ |
|
126 | 126 | return response()->json(["status" => "error", "error" => "We couldn't find the task that you wanted to update."], 200); |
127 | 127 | } |
128 | 128 | } else { |