I’m using validated-method to created an insert method but it crash to run meteor
export const hasAtLeastOnePenpal = new ValidatedMethod({
name: 'hasAtLeastOnePenpal',
validate: new SimpleSchema({
id: { type: String }
}).validator(),
run(id) {
return true
}
});
error message
I20170113-10:12:35.409(1)? info: =====> Meteor App restarted Fri Jan 13 2017 10:12:35 GMT+0100 (CET) <=====
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.`