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