knocklabs / knock-node

Official Node SDK for interacting with the Knock API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v0.6.0 not working

heymartinadams opened this issue · comments

As mentioned in #44, v0.6.0 gives us the following error:

[TypeError: errors is not iterable]

when running the following operation:

await knock.workflows.updateSchedules({
  data: { todoId, timeZone },
  schedule_ids: [dateStartReminder.scheduleId],
  scheduled_at: new Date(dateStart)
})

Hey @heymartinadams, we found an issue with how we were formatting the error message returned from the API and are pushing a new version of the SDK now. Please upgrade to 0.6.1 and that should resolve things. Thanks!