mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 02:08:47 +00:00
Merge pull request #61 from ClaytonWWilson/filteredPosts
Arrow-callback warning
This commit is contained in:
commit
f602b8251f
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable prefer-arrow-callback */
|
||||||
/* eslint-disable promise/always-return */
|
/* eslint-disable promise/always-return */
|
||||||
const admin = require('firebase-admin');
|
const admin = require('firebase-admin');
|
||||||
exports.putPost = (req, res) => {
|
exports.putPost = (req, res) => {
|
||||||
@ -41,3 +42,7 @@ exports.getallPostsforUser = (req, res) => {
|
|||||||
return res.status(500).json({error: 'Failed to fetch all posts written by specific user.'})
|
return res.status(500).json({error: 'Failed to fetch all posts written by specific user.'})
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.getFilteredPosts = (req, res) => {
|
||||||
|
admin.firestore().collection('posts').where('userHandle', '==', 'new user').where('microBlogTopics', '==')
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user