dapr / js-sdk

Dapr SDK for Javascript
Apache License 2.0
194 stars 82 forks source link

Actor timers and reminders should accept empty period parameter #535

Closed heunghingwan closed 10 months ago

heunghingwan commented 11 months ago

Expected Behavior

period is an optional parameter that sets time interval between two consecutive callback invocations. When specified in ISO 8601-1 duration format, you can also configure the number of repetition in order to limit the total number of callback invocations. If period is omitted, the callback will be invoked only once. link

Actual Behavior

throw TypeError: Cannot read properties of undefined (reading 'toString')

Steps to Reproduce the Problem

await actor.registerActorReminder("update", Temporal.Duration.from({ seconds: 5 }), undefined, undefined, 100) This should start a one-time reminder after 5 seconds.