Promise unresolved for this call, any help appreci...
# help
e
Promise unresolved for this call, any help appreciated: https://gist.github.com/mustefa/9b0d460dcc6602517dde3a68d31a1c9a
n
Hello @emjay! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
e
And here's my error log. I see the postgres log on supabase too, so it's hitting. I'm a bit new to data-fetching + supabase altogether, and reading up on promises too. Pointers appreciated.
g
When you call an async function you need to either "await" it if you want a response or use the .then() format to execute when it returns. So you need on line 29 const newsletterList =await getNewsletters(user.id);
n
mustefaj (2022-04-19)
e
@garyaustin thank you, I'm only confused in that I cannot us await outside of an async function.
g
Make newletters() async.
n
Thread was archived by @emjay. Anyone can send a message to unarchive it.