mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 21:25:04 +00:00
made userline not hardcoded
This commit is contained in:
@@ -28,7 +28,7 @@ exports.putPost = (req, res) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.getallPostsforUser = (req, res) => {
|
exports.getallPostsforUser = (req, res) => {
|
||||||
admin.firestore().collection('posts').where('userHandle', '==', 'new user' ).get()
|
admin.firestore().collection('posts').where('userHandle', '==', req.userData.handle ).get()
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
let posts = [];
|
let posts = [];
|
||||||
data.forEach(function(doc) {
|
data.forEach(function(doc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user