We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02f304a commit 07e801aCopy full SHA for 07e801a
1 file changed
src/commands/actors/push.ts
@@ -190,9 +190,8 @@ export class ActorsPushCommand extends ApifyCommand<typeof ActorsPushCommand> {
190
buildTag = DEFAULT_BUILD_TAG;
191
}
192
193
- const waitForFinishMillis = Number.isNaN(this.flags.waitForFinish)
194
- ? undefined
195
- : Number.parseInt(this.flags.waitForFinish!, 10) * 1000;
+ const parsedWaitForFinish = this.flags.waitForFinish ? Number.parseInt(this.flags.waitForFinish, 10) : Number.NaN;
+ const waitForFinishMillis = Number.isFinite(parsedWaitForFinish) ? parsedWaitForFinish * 1000 : undefined;
196
197
// User can override actorId of pushing Actor.
198
// It causes that we push Actor to this id but attributes in localConfig will remain same.
0 commit comments