From 21fa6fdc327757c29364a0e59fa37d8b279411df Mon Sep 17 00:00:00 2001 From: floatinghotpot Date: Mon, 7 Dec 2015 11:22:30 +0800 Subject: add: optional board description --- models/boards.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'models/boards.js') diff --git a/models/boards.js b/models/boards.js index c10e51a3..6aba0b1e 100644 --- a/models/boards.js +++ b/models/boards.js @@ -71,6 +71,10 @@ Boards.attachSchema(new SimpleSchema({ 'midnight', ], }, + description: { + type: String, + optional: true, + }, })); @@ -141,6 +145,10 @@ Boards.mutations({ return { $set: { title }}; }, + setDesciption(description) { + return { $set: {description} }; + }, + setColor(color) { return { $set: { color }}; }, -- cgit v1.2.3-1-g7c22