wip medication and db (sqlite)

This commit is contained in:
Moritz Riese
2024-12-28 20:09:43 +01:00
parent 06ef16581c
commit 03d36358bf
19 changed files with 191 additions and 46 deletions

View File

@@ -0,0 +1,15 @@
import { CronJob } from "cron";
import { MedicationService } from "actions/medication/medication.service";
const medicationService = new MedicationService();
new CronJob(
"0 0 19 * * *", // cronTime
async () => {
console.log("askMedication()");
await medicationService.askMedication();
}, // onTick
null, // onComplete
true, // start
"Europe/Berlin", // timeZone
);