frankly new to js so forgiveme if it's quite silly one. Firebase functions with Node.js 14 if that matters. My function (parts of it): exports.blablabla = functions.region('jajajaj').database.instance('ccc').ref('ddd').onCreate( (change, context) => { ... /** FOR LOOP **/ for (let i = 0; i < numberOfChild; i++) { /** CALLING THE ASYNC FUNCTION **/ if ( i > valueLimit - bufferValue - 1) { (async function(){ const keyToBeRemoved = pinKeysSorted[i]; const temp = await myAsync(area, country, section, genderString, keyToBeRemoved, lockMaximumTimeInHours); })() } } /** SCANNED EVERYTHING , CLOSING OFF **/ /** ALIGN THE overFlowValues TO REFLECT THE REAL VALUES **/ const myPromise = admin.database(zxcf).ref("minop...
A site where you can share knowledge