FirebaseRTC icon indicating copy to clipboard operation
FirebaseRTC copied to clipboard

Does `await` really make sense in `db.collection('rooms').doc();` ?

Open multimanic opened this issue 4 years ago • 0 comments

https://github.com/webrtc/FirebaseRTC/blob/b1d98aa103eb63b6874d52b2023b25fba81cbd50/public/app.js#L33

According to the docs, the doc() method doesn't return a promise. So why the await in this line?

multimanic avatar Mar 26 '21 17:03 multimanic