diff --git a/includes/services/class-test-service.php b/includes/services/class-test-service.php index 07f1018..99079d7 100644 --- a/includes/services/class-test-service.php +++ b/includes/services/class-test-service.php @@ -29,6 +29,7 @@ public function update_test_from_comparison( $alert_id, $test_id, $data ) { // Update test row with new id foreign key and add latest screenshot. // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. $update_data = [ + 'current_alert_id' => null, 'next_run_date' => $data['next_run_at'] ?? '', 'last_comparison_date' => $comparison['updated_at'], 'base_screenshot_url' => $comparison['screenshot']['image_url'],