Skip to content

Commit

Permalink
bug fix & comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nominalrune committed Feb 16, 2022
1 parent 8a8e01b commit a03b430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions calFactory/CalendarService.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Log } from './Log';
import { CreationError, FetchError } from './Error';
import { role } from './common';
import { Log } from './Log';
declare const exports: typeof import('./Error') & typeof import('./common') & typeof import('./Log');
exports.FetchError;
exports.CreationError;
exports.Log;
exports.CreationError;
exports.FetchError;
type Calendar = GoogleAppsScript.Calendar.Calendar;
type AclRule = GoogleAppsScript.Calendar.Schema.AclRule;
type CalendarWithRules = Calendar & { rules: AclRule[], name: string, id: string, toString: () => string; };
Expand Down
6 changes: 3 additions & 3 deletions calFactory/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ import { CalendarService } from "./CalendarService";
import { SheetInterpreter } from "./SheetInterpreter";
import { Log } from './Log';
declare const exports: typeof import('./CalendarService') & typeof import('./SheetInterpreter') & typeof import('./Log');
exports.CalendarService;
exports.Log; // Be careful about the order of the `exports` statement.
exports.CalendarService; // `CalenderService` uses Log class; this must be after `exports.Log` statement.
exports.SheetInterpreter;
exports.Log;


const main = () => {
const logs = new Log();
const sheetInterpreter = new SheetInterpreter(env.SHEET_ID, env.TERM_TABLE);
const calendarService = new CalendarService();
const logs = new Log();
sheetInterpreter.getCalendarNamesInSheet().forEach(calName => {
try {
const cal = calendarService.getOrCreateCalendarByName(calName);
Expand Down

0 comments on commit a03b430

Please sign in to comment.