mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 21:25:04 +00:00
connecting
This commit is contained in:
@@ -118,8 +118,13 @@ exports.getallPostsforFeed = (req, res) => {
|
||||
admin.firestore().collection('posts').get()
|
||||
.then((data) => {
|
||||
let posts = [];
|
||||
|
||||
data.forEach(function(doc) {
|
||||
posts.push(doc.data());
|
||||
posts.push( {
|
||||
microBlogs: doc.data(),
|
||||
id: doc.id,
|
||||
})
|
||||
|
||||
});
|
||||
return res.status(200).json(posts);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user