Commit 6894fd7e2bb9c51775e8307df74460af7cf725f0

Authored by Deepak
1 parent 8ce8e66f3c
Exists in master

added a new package

imports/collections/orgs/methods.js
... ... @@ -50,5 +50,20 @@ export const checkEmailInOrg = new ValidatedMethod({
50 50 return {success:false}
51 51 }
52 52 },
  53 +});
  54 +
  55 +export const studentCsvParse = new ValidatedMethod({
  56 + name: 'org.studentCsvParse',
  57 +
  58 + validate: new SimpleSchema({
  59 + data: { type: [Object] },
  60 + }).validator(),
  61 +
  62 + run(data) {
  63 + console.log(data);
  64 + return {
  65 +
  66 + };
  67 + },
53 68  
54 69 });
... ...
... ... @@ -63,6 +63,7 @@
63 63 },
64 64 "dependencies": {
65 65 "babel-runtime": "^6.18.0",
  66 + "babyparse": "^0.4.6",
66 67 "bcrypt": "^0.8.7",
67 68 "bootstrap": "^4.0.0-alpha.6",
68 69 "jquery": "^2.2.4",
... ...