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