Closed scottpchow23 closed 7 years ago
For .newpost I believe the route is supposed to be return rootRef.child("posts").child(User.current.uid).childByAutoId() where the tutorial solution has only return root.child("posts").childByAutoId()
.newpost
return rootRef.child("posts").child(User.current.uid).childByAutoId()
return root.child("posts").childByAutoId()
Yep, you're right. Thanks!
I've removed User.current.uid from within the enum and passed it in through an associated value to keep the code decoupled.
User.current.uid
For
.newpost
I believe the route is supposed to bereturn rootRef.child("posts").child(User.current.uid).childByAutoId()
where the tutorial solution has onlyreturn root.child("posts").childByAutoId()