Some notes.

This commit is contained in:
James Cole
2020-05-24 16:58:17 +02:00
parent b68663c977
commit 19ce6b71e2
2 changed files with 3 additions and 1 deletions

View File

@@ -79,7 +79,6 @@ class SubmitTelemetryData implements ShouldQueue
return;
}
$body = '{}';
$json = $this->parseJson($telemetry);
try {
$body = json_encode($json, JSON_THROW_ON_ERROR, 512);

View File

@@ -93,6 +93,9 @@ class TelemetryCronjob extends AbstractCronjob
$job->setDate($this->date);
$job->setForce($this->force);
$job->handle();
// TODO remove old, submitted telemetry data.
app('fireflyconfig')->set('last_tm_job', (int) $this->date->format('U'));
Log::info('Done with telemetry cron job task.');
}