Skip to content

Commit

Permalink
fix(builtins): add a bit of doc, remove additional 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Sep 4, 2024
1 parent 5b3e810 commit 18dd4c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/if-run/builtins/time-sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export const TimeSync = (
paddedArray.push(
...getZeroishInputPerSecondBetweenRange(
lastInputEnd,
params.endTime.plus({seconds: 1}),
params.endTime,
lastInput
)
);
Expand All @@ -491,6 +491,9 @@ export const TimeSync = (
return paddedArray;
};

/**
* Brakes down the given range by 1 second, and generates zeroish values.
*/
const getZeroishInputPerSecondBetweenRange = (
startDate: DateTimeMaybeValid,
endDate: DateTimeMaybeValid,
Expand Down

0 comments on commit 18dd4c1

Please sign in to comment.