Commit 6af5d633 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix date in normalizer

parent ea10246a
Pipeline #36973 failed with stages
in 52 minutes and 47 seconds
......@@ -89,7 +89,7 @@ object CalculationInfoNormalizer extends NormalizerGenerator with StrictLogging
*/
def calcGidToPidMap(archiveGid: String): RepoArchiveCalcInfo = memoizeSync(Some(10.seconds)) {
val pMap = pidMainFileUriMap(archiveGid)
val uploadDate: Long = pMap.foldLeft(0L) {
val uploadDate: Long = pMap.foldLeft((new java.util.Date).getTime()) {
case (minDate, (pid, RepoApiCalcInfo(_, _, uploadDates))) =>
uploadDates.foldLeft(minDate) { _ min _ }
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment