feat: initialize CalBook project with comprehensive scheduling, admin, and deployment infrastructure
This commit is contained in:
28
scripts/run-sync.ts
Normal file
28
scripts/run-sync.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { syncAllEnabledCalendars } from "../lib/services/caldav";
|
||||
import { runAppointmentReminders } from "../lib/services/reminders";
|
||||
|
||||
async function main() {
|
||||
const [syncResult, reminderResult] = await Promise.all([
|
||||
syncAllEnabledCalendars(),
|
||||
runAppointmentReminders()
|
||||
]);
|
||||
console.log(
|
||||
JSON.stringify(
|
||||
{
|
||||
sync: syncResult,
|
||||
reminders: reminderResult
|
||||
},
|
||||
null,
|
||||
2
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
main()
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
})
|
||||
.finally(() => {
|
||||
process.exit(0);
|
||||
});
|
||||
Reference in New Issue
Block a user