hotfix brownie points

This commit is contained in:
Berkeley Martinez
2015-10-15 00:33:45 -07:00
parent 745f059eeb
commit 1e439aa4c5

View File

@ -322,7 +322,7 @@ module.exports = function(User) {
})
// no results means this is the first brownie point given by giver
// so return -1 to indicate receiver should receive point
.firstOrDefault(null, -1)
.first({ defaultValue: -1 })
.flatMap((browniePointsFromGiver) => {
if (browniePointsFromGiver === -1) {