Lauri Ojansivu před 8 roky
rodič
revize
417bce5a01
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      sandstorm.js

+ 1 - 1
sandstorm.js

@@ -325,7 +325,7 @@ if (isSandstorm && Meteor.isServer) {
       if (newMethods[key].auth) {
         newMethods[key].auth = function() {
           const sandstormID = this.req.headers['x-sandstorm-user-id'];
-          const user = Meteor.users.findOne({"services.sandstorm.id": sandstormID});
+          const user = Meteor.users.findOne({'services.sandstorm.id': sandstormID});
           return user && user._id;
         };
       }