Implemented a javascript code style

This commit is contained in:
Stefan Zermatten
2015-04-22 12:44:25 +02:00
parent dce20375b5
commit fada0f5136
113 changed files with 1614 additions and 1650 deletions

View File

@@ -1,7 +1,9 @@
Meteor.methods({
"getUserId": function(username){
if(!username) return;
var user = Meteor.users.findOne({$or: [{username: username}, {"emails.address": username}]});
if (!username) return;
var user = Meteor.users.findOne(
{$or: [{username: username}, {"emails.address": username}]}
);
return user && user._id;
}
});