Fix submission command.

This commit is contained in:
James Cole
2020-05-24 12:32:02 +02:00
parent ac385e2647
commit b68663c977

View File

@@ -79,10 +79,10 @@ class SubmitTelemetryData implements ShouldQueue
return;
}
$body = '[]';
$body = '{}';
$json = $this->parseJson($telemetry);
try {
json_encode($json, JSON_THROW_ON_ERROR, 512);
$body = json_encode($json, JSON_THROW_ON_ERROR, 512);
} catch (JsonException $e) {
Log::error($e->getMessage());
Log::error('Could not parse JSON.');