Advertisement
Guest User

Untitled

a guest
Jul 17th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ReactionCore.Schemas.userPrefs = new SimpleSchema([
  2.   ReactionCore.Schemas.Accounts, {
  3.     defaultGame: {
  4.       type: String,
  5.       label: "Default Game",
  6.       optional: true
  7.     }
  8.   }
  9. ]);
  10.  
  11. // And it's called from a method using:
  12.     var userId = Meteor.userId();
  13.     ReactionCore.Collections.Accounts.update({_id: userId}, {$set: {'defaultGame': 'plz work'}});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement