Add Feature: enable two-way webhooks - add comments need userid

This commit is contained in:
Sam X. Chen 2019-08-30 10:36:17 -04:00
parent b477fc1b1c
commit 510407467c

View file

@ -55,13 +55,17 @@ Meteor.methods({
}, },
}); });
} else { } else {
const userId = data.userId;
if (userId) {
CardComments.insert({ CardComments.insert({
text: newComment, text: newComment,
userId,
cardId, cardId,
boardId, boardId,
}); });
} }
} }
}
}, },
outgoingWebhooks(integration, description, params) { outgoingWebhooks(integration, description, params) {
check(integration, Object); check(integration, Object);