You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varq=require('q');varfs=require("q-io/fs");functionsave(filename,data){returnfs.write(filename,JSON.stringify(data,null,2));}downloadAll.then(function(){varsaves=[];// emotes is a global variable, has 10.000 objectssaves.push(save('hello.json',{data: "hello"}));Object.keys(emotes).forEach(function(key){saves.push(save(`${emotes[key].name}.json`,emotes[key]));});saves.push(save('bye.json',{data: "bye"}));returnq.all(saves);}).then(function(){console.log('All files are saved');});
bye.json is always empty, there is no data written.
If you switch places of hello.json and bye.json, this time hello.json becomes empty.
q version: ^1.4.1
q-io version: kriskowal/q-io#v2
The text was updated successfully, but these errors were encountered:
I have a Promise chain like this:
bye.json
is always empty, there is no data written.If you switch places of hello.json and bye.json, this time
hello.json
becomes empty.q version:
^1.4.1
q-io version:
kriskowal/q-io#v2
The text was updated successfully, but these errors were encountered: