how to store data in firebase

hi how to store the same data at the same time to two different path/places in firebase realtime database? i tried this but it isn’t working

export const DetailsCreated = ({ name }) => {

return () => {
    firebase.database().ref('games')
    firebase.database().ref('users')
        .push({ name })

};

}

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.