in lambda/src/GaroxaController.ts [143:165]
public async getCurrentRegularSchedule(detail: GaroonScheduleDetail){
const regularSchedules = await this.getCurrentRegularScheduleRowData(detail)
const regularScheduleDescriptions: {
startTime: string,
endTime: string,
subject: string
}[] = []
regularSchedules.forEach((event)=>{
const startTime = dayjs(event.start.dateTime.slice(0, -6), {locale: "ja"}).format("HH時mm分") // 2020-10-23T12:00:00+09:00 → 2020-10-23T12:00:00
const endTime = dayjs(event.end.dateTime.slice(0, -6), {locale: "ja"}).format("HH時mm分")
const subject = event.subject
regularScheduleDescriptions.push({
startTime: startTime,
endTime: endTime,
subject: subject
})
})
console.log(regularScheduleDescriptions)
return regularScheduleDescriptions
}