Blame view
imports/collections/teachers/methods.js
947 Bytes
d75229d74
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
// import {Parents } from '/imports/collections/parents/methods' import _ from 'lodash'; import { Meteor } from 'meteor/meteor'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import { SimpleSchema } from 'meteor/aldeed:simple-schema'; import { DDPRateLimiter } from 'meteor/ddp-rate-limiter'; import { Bert } from 'meteor/themeteorchef:bert'; import { Users } from '/imports/collections/users/index'; import { Teachers } from '/imports/collections/teachers/index'; import { Orgs } from '/imports/collections/orgs/index'; export const teachersMethods = new ValidatedMethod({ name: 'teachers.method', validate: new SimpleSchema({ itemId: { type: String }, }).validator(), run({itemId}) { return {}; }, }); |