Forráskód Böngészése

dangling commas error

Stephen Moloney 8 éve
szülő
commit
88d3f38d53
2 módosított fájl, 6 hozzáadás és 6 törlés
  1. 2 2
      models/users.js
  2. 4 4
      server/publications/users.js

+ 2 - 2
models/users.js

@@ -106,8 +106,8 @@ Users.attachSchema(new SimpleSchema({
   },
   },
   isAdmin: {
   isAdmin: {
     type: Boolean,
     type: Boolean,
-    optional: true
-  }
+    optional: true,
+  },
 }));
 }));
 
 
 // Search a user in the complete server database by its name or username. This
 // Search a user in the complete server database by its name or username. This

+ 4 - 4
server/publications/users.js

@@ -5,15 +5,15 @@ Meteor.publish('user-miniprofile', function(userId) {
     fields: {
     fields: {
       'username': 1,
       'username': 1,
       'profile.fullname': 1,
       'profile.fullname': 1,
-      'profile.avatarUrl': 1
-    }
+      'profile.avatarUrl': 1,
+    },
   });
   });
 });
 });
 
 
 Meteor.publish('user-admin', function() {
 Meteor.publish('user-admin', function() {
   return Meteor.users.find(this.userId, {
   return Meteor.users.find(this.userId, {
     fields: {
     fields: {
-      isAdmin: 1
-    }
+      isAdmin: 1,
+    },
   });
   });
 });
 });