Update FetchNodeinfoPipeline, set last_fetched_at timestamp

pull/5123/head
Daniel Supernault 1 year ago
parent aa61953a1e
commit a7fce91e0c
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -72,10 +72,12 @@ class FetchNodeinfoPipeline implements ShouldQueue, ShouldBeUniqueUntilProcessin
$instance->software = strtolower(strip_tags($software));
$instance->user_count = Profile::whereDomain($instance->domain)->count();
$instance->nodeinfo_last_fetched = now();
$instance->last_crawled_at = now();
$instance->save();
}
} else {
$instance->delivery_timeout = 1;
$instance->last_crawled_at = now();
$instance->delivery_next_after = now()->addHours(14);
$instance->save();
}

Loading…
Cancel
Save