diff --git a/imports/collections/orgs/methods.js b/imports/collections/orgs/methods.js index 78a2427..1e1f7c8 100644 --- a/imports/collections/orgs/methods.js +++ b/imports/collections/orgs/methods.js @@ -50,5 +50,20 @@ export const checkEmailInOrg = new ValidatedMethod({ return {success:false} } }, +}); + +export const studentCsvParse = new ValidatedMethod({ + name: 'org.studentCsvParse', + + validate: new SimpleSchema({ + data: { type: [Object] }, + }).validator(), + + run(data) { + console.log(data); + return { + + }; + }, }); diff --git a/package.json b/package.json index e156baa..3696eaf 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ }, "dependencies": { "babel-runtime": "^6.18.0", + "babyparse": "^0.4.6", "bcrypt": "^0.8.7", "bootstrap": "^4.0.0-alpha.6", "jquery": "^2.2.4",