From d6e64f00a5a7476f0c87563556d627f0a44b8fd9 Mon Sep 17 00:00:00 2001 From: yamanq Date: Sun, 7 Aug 2016 15:21:39 -0400 Subject: [PATCH] server addition --- hourglass/server/main.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hourglass/server/main.js b/hourglass/server/main.js index ae11266..a8694fe 100644 --- a/hourglass/server/main.js +++ b/hourglass/server/main.js @@ -13,20 +13,20 @@ schools.schema = new SimpleSchema({ classes.schema = new SimpleSchema({ school: {type: String}, //icon: {type: String}, - hour: {type: String}, - teacher: {type: String}, name: {type: String, label: "Class Name"}, + hour: {type: String, optional: true}, + teacher: {type: String, optional: true}, status: {type: Boolean, defaultValue: false}, code: {type: String, optional: true}, privacy: {type: String}, category: {type: String}, - /*moderators: {type: [String]}, + moderators: {type: [String]}, banned: {type: [String]}, blockEdit: {type: [String]}, - admin: {type: String}*/ + admin: {type: String} }); -homework.schema = new SimpleSchema({ +work.schema = new SimpleSchema({ class: {type: String}, dueDate: {type: Date}, aliases: {type: [String]}, @@ -37,6 +37,13 @@ homework.schema = new SimpleSchema({ done: {type: [String], optional: true} }); +// Meteor.methods({ +// createClass: function(client) { +// if +// } + +// }); + Meteor.startup(() => { Meteor.methods({