Skip to content

Commit

Permalink
Set limit for sent notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
YaaL committed Jul 8, 2020
1 parent c686ce4 commit 1b6d8d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default {
let firestoreRef = firestore
.collection('notifications')
.where('status', '==', 'sent')
.orderBy('createdAt', 'desc');
.orderBy('createdAt', 'desc')
.limit('200');
return bindFirestoreRef('sent', firestoreRef, { serialize: vuexfireSerialize });
}),
unbindSent: firestoreAction(({ unbindFirestoreRef }) => {
Expand Down

0 comments on commit 1b6d8d9

Please sign in to comment.