From 70a12dcca42a4b89c62b5718c25b11a6a5fb59ca Mon Sep 17 00:00:00 2001 From: shobhitm23 Date: Mon, 28 Oct 2019 00:21:29 -0400 Subject: [PATCH] Arrow-callback warning --- functions/handlers/post.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/handlers/post.js b/functions/handlers/post.js index c14c61c..2ae8d3c 100644 --- a/functions/handlers/post.js +++ b/functions/handlers/post.js @@ -1,3 +1,4 @@ +/* eslint-disable prefer-arrow-callback */ /* eslint-disable promise/always-return */ const admin = require('firebase-admin'); 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.'}) }) }; + +exports.getFilteredPosts = (req, res) => { + admin.firestore().collection('posts').where('userHandle', '==', 'new user').where('microBlogTopics', '==') +}; \ No newline at end of file