Blame view

server/methods/update/collection-name.js 250 Bytes
c39994410   Ryan Glover   wip converting to...
1
2
3
4
5
  Meteor.methods({
    updateServerOnly( update ) {
      check( update, String );
  
      try {
db5aba845   Ryan Glover   miscellaneous wor...
6
        return Documents.update( update._id, { $set: update } );
c39994410   Ryan Glover   wip converting to...
7
8
9
10
11
      } catch ( exception ) {
        throw new Meteor.Error( '500', `${ exception }` );
      }
    }
  });