Fixed issue where we couldn't return the time for the user.

This commit is contained in:
perroned 2014-10-03 10:26:01 -07:00
parent 50f4a48727
commit 63744a1857

View File

@ -43,7 +43,7 @@
(new Date).valueOf()
@getTimeOfJoining = ->
Meteor.Users.findOne({"user.userid": getInSession("userId")})?.user?.time_of_joining
Meteor.Users.findOne(_id: getInSession "DBID")?.user?.time_of_joining
@getUsersName = ->
name = getInSession("userName") # check if we actually have one in the session