Skip to content

Commit

Permalink
Merge pull request #88 from bitovi/quarter-service
Browse files Browse the repository at this point in the history
fixing bug
  • Loading branch information
justinbmeyer authored Oct 11, 2024
2 parents 3db3613 + a57c1da commit 8511ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tag-to-dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function getLatestDate(tags){
if(validTags.length === 0) {
throw new Error("No valid tags")
} else {
return new Date(Math.max(...datesArray.map(date => date.getTime())));
return new Date(Math.max(...validTags.map(date => date.getTime())));
}
}

Expand Down

0 comments on commit 8511ddb

Please sign in to comment.