summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 6a33fa1a..9236fcaa 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -66,6 +66,14 @@ Cards.attachSchema(new SimpleSchema({
type: String,
optional: true,
},
+ requestedBy: {
+ type: String,
+ optional: true,
+ },
+ assignedBy: {
+ type: String,
+ optional: true,
+ },
labelIds: {
type: [String],
optional: true,
@@ -268,6 +276,14 @@ Cards.mutations({
return {$set: {description}};
},
+ setRequestedBy(requestedBy) {
+ return {$set: {requestedBy}};
+ },
+
+ setAssignedBy(assignedBy) {
+ return {$set: {assignedBy}};
+ },
+
move(swimlaneId, listId, sortIndex) {
const list = Lists.findOne(listId);
const mutatedFields = {