79211720

Date: 2024-11-21 14:58:24
Score: 0.5
Natty:
Report link

You are not awaiting in the initial for loop so setRouteHeader is called multiple times simultaneously. This causes the find and update operations to overlap causing what you have observed here. To fix it wrap the for loop in an asynchronous function and add await before calling setRouteHeader then call this asynchronous function

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Lars Vonk