Closed oreporan closed 8 years ago
I just found out there is a shorter/more effecient way to search by ID,
User.findById(clientId, callback)
Right now we were using
User.findOne({_id: userId}, callback)
The top one is better obviously... So @Yahavw - you need to switch this in LeagueEndpoint
I just found out there is a shorter/more effecient way to search by ID,
User.findById(clientId, callback)
Right now we were using
User.findOne({_id: userId}, callback)
The top one is better obviously... So @Yahavw - you need to switch this in LeagueEndpoint