Revert "Status working page"

This reverts commit a7d34eca09.
This commit is contained in:
shobhitm23
2019-10-25 18:16:07 -04:00
parent a7d34eca09
commit 637c4205af
6 changed files with 5290 additions and 14674 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((doc) => {
data.forEach(function(doc) {
posts.push(doc.data());
});
return res.status(200).json(posts);