We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 717edbf + 4c98287 commit 795f171Copy full SHA for 795f171
lib/BackgroundJobs/MonthlyReport.php
@@ -23,6 +23,7 @@
23
24
use OC\BackgroundJob\TimedJob;
25
use OCA\Survey_Client\AppInfo\Application;
26
+use OCP\AppFramework\Http;
27
28
class MonthlyReport extends TimedJob {
29
@@ -40,7 +41,7 @@ protected function run($argument) {
40
41
$collector = $application->getContainer()->query('OCA\Survey_Client\Collector');
42
$result = $collector->sendReport();
43
- if (!$result->succeeded()) {
44
+ if ($result->getStatus() !== Http::STATUS_OK) {
45
\OC::$server->getLogger()->info('Error while sending usage statistic');
46
}
47
0 commit comments