Don't update talks periodically in a cron job

I don't think this needs to be run daily. It should be OK updating each
talk if or when it's updated.
This commit is contained in:
Oliver Davies 2024-05-22 06:59:23 +01:00
parent a2ef66a7ff
commit b2215f0e7f

View file

@ -13,14 +13,6 @@ use Drupal\opdavies_talks\Service\TalkCounter;
use Drupal\opdavies_talks\Service\TalkCounterInterface;
use Drupal\opdavies_talks\Service\TalkDateUpdater;
/**
* Implements hook_cron().
*/
function opdavies_talks_cron(): void {
$dateUpdater = Drupal::service(TalkDateUpdater::class);
$dateUpdater->__invoke();
}
/**
* Implements hook_views_data_alter().
*/