i am trying to get all docs in collection in firestore with node.js but i can't get any docs althow there is someone know what is the problem in this function:
exports.getTasksNew8 = functions.https.onRequest((request,response) => {
admin.firestore().collection('users/admin/settings').get().then(querySnapshot=>{
querySnapshot.forEach(documentSnapshot=>{
console.log(documentSnapshot.id)
})
}).catch(error=>{
console.log(error)
})
response.send('works ok)
})