Blame view

imports/collections/parents/methods.js 943 Bytes
d19761913   Deepak   added parent schema
1
2
3
4
5
6
7
8
9
10
  // 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 { Students }                       from '/imports/collections/students/index';
  import { Orgs }                           from '/imports/collections/orgs/index';
691a06c2f   ajaiprakash   Staff profile
11
12
  export const parentMethods = new ValidatedMethod({
    name: 'parent.method',
d19761913   Deepak   added parent schema
13
14
15
16
17
18
19
20
21
22
  
    validate: new SimpleSchema({
      itemId: { type: String },
    }).validator(),
  
    run({itemId}) {
      return {};
    },
  
  });