const getTrendingWishes = () => { let now = new Date(); now.setDate(now.getDate() - 3); let daysAgo = now.getTime(); return firebase.database().ref('/wishes/').orderByChild('createdAt').startAt(daysAgo); }
const getTrendingWishes = () => { let now = new Date(); now.setDate(now.getDate() - 3); let daysAgo = now.getTime(); return firebase.database().ref('/wishes/').orderByChild('createdAt').startAt(daysAgo); }