Hi Javier,
It looks like you're mixing a few programming styles, you have async/await but also promise chaining with then/catch. It's very likely that your flow is incorrect and this is not an issue with Firebase, although it's hard to debug code from a screenshot (please send code as text in the future).
One thing that stands out is your first function which has something like this:
await array.forEach(async function (hora) {
await somethingElse(hora)
});
This will not work as you expect. You cannot await a forEach loop with an async callback. Instead try this style:
for (const hora of horasselected) {
await somethingElse(hora);
}
- Sam