Commit 6894fd7e2bb9c51775e8307df74460af7cf725f0
1 parent
8ce8e66f3c
Exists in
master
added a new package
Showing
2 changed files
with
16 additions
and
0 deletions
Show diff stats
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 | }); | ... | ... |