shared/api/models/EventModel.ts
Function toICal
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toICal(baseUrl: string, appName: string, recurring: boolean): string {
const { title, location, path, date, excerpt, lastUpdate } = this
const url = `${baseUrl}${path}`
const uid = v5(`${url}/${formatDateICal(lastUpdate)}`, v5.URL)
const timezone = date.startDate.zone.name