Skip to content

Commit

Permalink
fix: conform to latest ical.js version
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
  • Loading branch information
GVodyanov committed Apr 18, 2024
1 parent 7756ad6 commit 5db116e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/convert.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getZoneString } from 'icalzone'
import { parse as parseIcal, Component } from 'ical.js'
import ICAL from 'ical.js'
import { v4 as uuidv4 } from 'uuid'
import logger from './utils/logger.js'

Expand All @@ -23,9 +23,9 @@ export function getEmptySlots() {
* @param vavailability

Check warning on line 23 in src/convert.js

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @param "vavailability" description

Check warning on line 23 in src/convert.js

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @param "vavailability" type
*/
export function vavailabilityToSlots(vavailability) {
const parsedIcal = parseIcal(vavailability)
const parsedIcal = ICAL.parse(vavailability)

const vcalendarComp = new Component(parsedIcal)
const vcalendarComp = new ICAL.Component(parsedIcal)
const vavailabilityComp = vcalendarComp.getFirstSubcomponent('vavailability')

let timezoneId
Expand Down

0 comments on commit 5db116e

Please sign in to comment.