Created
September 25, 2020 22:33
-
-
Save JWPapi/79417737f3eda25e2cd7021f6b43aa45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bets.map((bet) => { | |
user.find({_id: bet.owner}, (err,user) => { | |
bet.ownerObj = user | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment