LT-274: Fix blank date in last login dialog on first logon
- Remove redundant lastLoginModal.js file - Refactor userAccountMenu.js
This commit is contained in:
1 parent
3b993dadc0
commit
28a904b290
6 files changed
+81
-56
No files matched your search
@@ -85,7 +85,13 @@ Meteor.methods({
|
||||
},
|
||||
|
||||
getPriorLoginDate: function() {
|
||||
return Meteor.users.findOne({_id: Meteor.userId()}, {fields: {priorLoginDate: 1}});
|
||||
return Meteor.users.findOne({
|
||||
_id: Meteor.userId()
|
||||
}, {
|
||||
fields: {
|
||||
priorLoginDate: 1
|
||||
}
|
||||
}).priorLoginDate;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user