Skip to content

Commit

Permalink
fix: wrapping param inSeconds with parseInt to ensure correct addition (
Browse files Browse the repository at this point in the history
  • Loading branch information
pattishin authored and grayside committed Nov 3, 2022
1 parent d4c363e commit 6b3db72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud-tasks/createHttpTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function main(
if (inSeconds) {
// The time when the task is scheduled to be attempted.
task.scheduleTime = {
seconds: inSeconds + Date.now() / 1000,
seconds: parseInt(inSeconds) + Date.now() / 1000,
};
}

Expand Down

0 comments on commit 6b3db72

Please sign in to comment.