const responses = await Promise.all(responsePromises);
items.forEach((item, itemIndex) => {
responses.forEach((res, resindex) => {
if (itemIndex === resIndex) {
axios.post(res.post_url, item, config);
}
});
});
Promise.all(items.map((item, index) => axios.post(responses[index], item, config)))