Skip to content

Commit

Permalink
filter to approved review only
Browse files Browse the repository at this point in the history
  • Loading branch information
thuypham03 committed Nov 13, 2023
1 parent 0579de1 commit c4f36e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ app.get('/api/review/like', authenticate, async (req, res) => {
const matchingReviews: ReviewWithId[] = [];
const querySnapshot = await reviewCollection
.where(FieldPath.documentId(), 'in', reviewIds)
.where('status', '==', 'APPROVED')
.get();
querySnapshot.forEach((doc) => {
const reviewData = doc.data();
Expand Down

0 comments on commit c4f36e2

Please sign in to comment.