The drug dataset auto-updated on its own daily cron that ignored the contentAutoUpdate.* master switch, so it would refresh even with content auto-update turned off, and it didn't ride the content-update path the way ZIMs and maps do. Move the export_date freshness/apply orchestration onto DrugReferenceService.attemptAutoUpdate(), add ContentAutoUpdateService.attemptDrugDataset() gated on the same enabled + window config, and have the hourly ContentAutoUpdateJob drive both. Retire the standalone DrugAutoUpdateJob. The ZIM/map attempt() path is unchanged. Addresses the upstream #1040 request to wire the openFDA export_date check into the content updater so the dataset updates alongside ZIMs and maps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| controllers | ||
| data | ||
| exceptions | ||
| jobs | ||
| middleware | ||
| models | ||
| services | ||
| utils | ||
| validators | ||