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