Fetch the whole user doc

Other attributes are needed to calculate features.
This commit is contained in:
Alberto Fernández Capel
2018-06-27 12:52:47 +01:00
parent 8b8742d60f
commit c19fc6d245
2 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@ describe 'ReferalFeatures', ->
it "should get the users number of refered user", ->
@UserGetter.getUserOrUserStubById
.calledWith(@user_id, { _id: 1 })
.calledWith(@user_id, null)
.should.equal true
it "should call the callback with the features", ->
@@ -57,7 +57,7 @@ describe 'ReferalFeatures', ->
it "should get the users number of refered user", ->
@UserGetter.getUserOrUserStubById
.calledWith(@user_id, { _id: 1 })
.calledWith(@user_id, null)
.should.equal true
it "should call the callback with no features", ->