Status working page

This commit is contained in:
shobhitm23
2019-10-23 22:11:52 -04:00
parent d476cbc893
commit a7d34eca09
6 changed files with 14614 additions and 5230 deletions

View File

@@ -31,7 +31,7 @@ exports.getallPostsforUser = (req, res) => {
admin.firestore().collection('posts').where('userHandle', '==', 'new user' ).get()
.then((data) => {
let posts = [];
data.forEach(function(doc) {
data.forEach((doc) => {
posts.push(doc.data());
});
return res.status(200).json(posts);