knocklabs / knock-node

Official Node SDK for interacting with the Knock API
MIT License
39 stars 5 forks source link

v0.6.0 not working #47

Closed heymartinadams closed 7 months ago

heymartinadams commented 7 months ago

As mentioned in https://github.com/knocklabs/knock-node/pull/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)
})
connorlindsey commented 7 months ago

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!