DEV Community

MagyzTech
MagyzTech

Posted on

Mongoose get list of users who bought a ticket everyday of the week

I'm creating a product for a company, and one of the feature is that they want to award any user who buys an item everyday for the 7 days of the week.
I'm currently using node, express, and mongoose.
So how do I get the records of only the users who bought at least an item everyday for the seven days of the week. This draw will be made every weekend

Top comments (0)