---
# System prepended metadata

title: Untitled

---

Home Tab APIs:
1)a-User Pending requests : 
(get)HelpRequest.find({state : pending})

b-User Pending Offers : 
(get)Offers.find({state : pending})

onClick #1  : details Screen 
 (get) : HelpRequest.findOne({id}) || Offers.findOne({id})
 
2)Sponsors:
(get) : Sponsor.find({})

3)a-Mission completed : 
(get) : Offers.find({state : completed , { "createdAt": { $gt: new Date(Date.now() - 24*60*60 * 1000) } })

b-countDocuments(Offers.find({state : completed , { "createdAt": { $gt: new Date(Date.now() - 24*60*60 * 1000) } }))

c-