UNPKG

school-schedule-sync

Version:

Synchronization between JSON schedule and Google Calendar

13 lines 599 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = run; const google_api_wrapper_1 = require("@anmiles/google-api-wrapper"); const logger_1 = require("@anmiles/logger"); const sync_1 = require("./sync"); async function run(profile, calendarName) { for (const foundProfile of (0, google_api_wrapper_1.filterProfiles)(profile)) { (0, logger_1.info)(`Syncing calendars for ${foundProfile}${calendarName ? ` only for calendar ${calendarName}` : ''}`); await (0, sync_1.sync)(foundProfile, calendarName); } } //# sourceMappingURL=app.js.map