dmikester1
dmikester12y ago

✅ – dmikester1 – 16-24 Mar 2

I am trying to figure this issue out with this json-storage library. It does not support promises. My environments variable is always coming out empty. I know its because I need to wait for storage.get somehow.
4 Replies
dmikester1
dmikester1OP2y ago
let environments = [];
storage.get('SADT-environtments', function(error, data) {
if (error) throw error;
console.log({data})
environments = JSON.parse(data.environments);
});
console.log({ environments });
let environments = [];
storage.get('SADT-environtments', function(error, data) {
if (error) throw error;
console.log({data})
environments = JSON.parse(data.environments);
});
console.log({ environments });
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1080888364452020325
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1080888364452020325 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26