File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,9 +165,9 @@ public function deleteDirectory($path)
165165 if ($ this ->storage ->deleteDirectory ($ path )) {
166166 event (new FolderRemoved ($ this ->storage , $ path ));
167167
168- return response ()->json (true );
168+ return response ()->json ([ ' success ' => true , ' data ' => []] );
169169 } else {
170- return response ()->json (false );
170+ return response ()->json ([ ' success ' => false , ' data ' => " Something is wrong to delete folder. please try again later. " ] );
171171 }
172172 }
173173
@@ -274,7 +274,7 @@ public function removeFile($file)
274274
275275 return response ()->json (['success ' => true , 'data ' => []]);
276276 } else {
277- return response ()->json (['success ' => false , 'error ' => "Something is wrong to delete file. " ]);
277+ return response ()->json (['success ' => false , 'error ' => "Something is wrong to delete file. please try again later. " ]);
278278 }
279279 }
280280
You can’t perform that action at this time.
0 commit comments