school-schedule-sync
Version:
Synchronization between JSON schedule and Google Calendar
12 lines (9 loc) • 333 B
text/typescript
import { filterProfiles } from '@anmiles/google-api-wrapper';
import { info } from '@anmiles/logger';
import { sync } from './sync';
export async function run(profile?: string): Promise<void> {
for (const foundProfile of filterProfiles(profile)) {
info(`Syncing calendars for ${foundProfile}`);
await sync(foundProfile);
}
}