Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/meteor-down.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Meteor.methods({
// this does not resume subscriptions and so on, and we don't really need it
// we do this at the start, so this is fine
var sessionId = this.connection.id;
var session = Meteor.server.sessions[sessionId];
var session = Meteor.server.sessions.get(sessionId);
session.userId = user._id;

return user;
Expand All @@ -38,4 +38,4 @@ MeteorDown.login = function (params) {
if(params.userId) {
return Meteor.users.findOne(params.userId);
}
}
}