updateMany arrayFilters

let voteTwentyHourCalcul =

  {

    day: ["2022-05-06", "2022-05-09", "2022-05-20", "2022-05-27", "2022-05-28", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

    hour: [3, 4, 12, 45, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

    value: [3, 4, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

  }

I would like to set the values ​​to 0 when there is a 24 hour difference from the current date

For example for index 0 the date is “2022-05-06” the time at 3 and the value at 3 so there is a 24 hour difference between 2022-05-06 3h and today’s date today and therefore set the value 3 to 0

And do the same for each index

I don’t know if I can make myself understood

Thanks to anyone who tries to help me