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
What am I doing wrong here? It seems so simple, but I'm fighting. count works, first doesn't.
db.tables.forEach(t=>{t.count(c=>console.error('count of '+t.name+' is '+c));t.first(item=>console.error(item));t.first().then(item=>console.error(item)).catch(err=>console.error(err)).finally(()=>console.log('finally!'))});
I'm not even sure how to debug this. Sorry for such a simple question. Thanks!
The text was updated successfully, but these errors were encountered:
I'm still struggling with Promises.
What am I doing wrong here? It seems so simple, but I'm fighting. count works, first doesn't.
I'm not even sure how to debug this. Sorry for such a simple question. Thanks!
The text was updated successfully, but these errors were encountered: