diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/boards.js | 4 | ||||
-rw-r--r-- | models/cards.js | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index c51a9865..eda34bf4 100644 --- a/models/boards.js +++ b/models/boards.js @@ -212,6 +212,10 @@ Boards.helpers({ return this.permission === 'public'; }, + cards() { + return Cards.find({ boardId: this._id, archived: false }, { sort: { title: 1 } }); + }, + lists() { return Lists.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } }); }, diff --git a/models/cards.js b/models/cards.js index b6a7b4c6..af8bea48 100644 --- a/models/cards.js +++ b/models/cards.js @@ -133,6 +133,13 @@ Cards.attachSchema(new SimpleSchema({ defaultValue: -1, optional: true, }, + type: { + type: String, + }, + importedId: { + type: String, + optional: true, + }, })); Cards.allow({ |