James Cole
2024-11-09 06:23:28 +01:00
parent 2723e05d2a
commit 2714ee96f1
3 changed files with 8 additions and 2 deletions

View File

@@ -112,7 +112,12 @@ class StoreController extends Controller
return response()->json([], 422);
}
$helper->saveAttachmentFromApi($attachment, $body);
$result = $helper->saveAttachmentFromApi($attachment, $body);
if(false === $result) {
app('log')->error('Could not save attachment from API.');
return response()->json([], 422);
}
return response()->json([], 204);
}