Skip to content

I'm using validated-method to created a insert method but it crash to run meteor #66

@neutron92

Description

@neutron92

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 Tandems.collection.find({interlocutors: id}).count() > 0
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions