Skip to content

Commit

Permalink
ScheduledTasks Casting Error (#592)
Browse files Browse the repository at this point in the history
BoxLang requires the value passed into
java.util.concurrent.TimeUnit to be casted to long
to avoid error.

COLDBOX-1282
  • Loading branch information
GiancarloGomez authored May 21, 2024
1 parent b11e27f commit a12a62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/async/tasks/ScheduledTask.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ component accessors="true" {
// Set the period to be every hour in seconds
variables.period = variables.timeUnitHelper
.get( arguments.periodValue )
.toSeconds( arguments.periodMultiplier );
.toSeconds( javacast( "long", arguments.periodMultiplier ) );
variables.timeUnit = "seconds";
}

Expand Down

0 comments on commit a12a62f

Please sign in to comment.