From 22d3cf00829849fa607f62c62cf8bc845a2b92e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 5 Nov 2021 16:23:01 +0100 Subject: [PATCH] Fix repair_stats_jobs migration not deleting jobs --- database/migrations/2021_10_29_160416_repair_stats_jobs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/migrations/2021_10_29_160416_repair_stats_jobs.php b/database/migrations/2021_10_29_160416_repair_stats_jobs.php index ac46b63..11d9b00 100644 --- a/database/migrations/2021_10_29_160416_repair_stats_jobs.php +++ b/database/migrations/2021_10_29_160416_repair_stats_jobs.php @@ -25,6 +25,8 @@ class RepairStatsJobs extends Migration foreach ($jobs as $job) { $payload = json_decode($job->payload); if ($payload->displayName === SetServiceStats::class) { + $jobIDS[] = $job->id; + $ref = new ReflectionProperty(SetServiceStats::class, 'service'); $ref->setAccessible(true); $service = $ref->getValue(unserialize($payload->data->command));