Skip to content

Commit

Permalink
Fix type mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Jan 25, 2024
1 parent 01c49d1 commit b8ef8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyses.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ func CreateMessageHandler(dedb *sql.DB) func(context.Context, amqp.Delivery) {

// StartDate is in milliseconds, so convert it to nanoseconds, add correct number of seconds,
// then convert back to milliseconds.
endDate := time.Unix(0, sdnano).Add(timeLimitSeconds*time.Second).UnixNano() / 1000000
endDate := time.Unix(0, sdnano).Add(time.Duration(timeLimitSeconds)*time.Second).UnixNano() / 1000000
if err = setPlannedEndDate(ctx, dedb, analysis.ID, endDate); err != nil {
log.Error(errors.Wrapf(err, "error setting planned end date for analysis '%s' to '%d'", analysis.ID, endDate))
}
Expand Down

0 comments on commit b8ef8b1

Please sign in to comment.