diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-30 10:36:17 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-30 10:36:17 -0400 |
commit | 510407467c5245f13fb9508b6e95f6b490dcd36b (patch) | |
tree | dabc4133dc5fcfee508d9d540f4a7cfc5bd9d351 | |
parent | b477fc1b1c45e36460f061e0bdcc357188eea372 (diff) | |
download | wekan-510407467c5245f13fb9508b6e95f6b490dcd36b.tar.gz wekan-510407467c5245f13fb9508b6e95f6b490dcd36b.tar.bz2 wekan-510407467c5245f13fb9508b6e95f6b490dcd36b.zip |
Add Feature: enable two-way webhooks - add comments need userid
-rw-r--r-- | server/notifications/outgoing.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/server/notifications/outgoing.js b/server/notifications/outgoing.js index 6fe90d93..1dc3d805 100644 --- a/server/notifications/outgoing.js +++ b/server/notifications/outgoing.js @@ -55,11 +55,15 @@ Meteor.methods({ }, }); } else { - CardComments.insert({ - text: newComment, - cardId, - boardId, - }); + const userId = data.userId; + if (userId) { + CardComments.insert({ + text: newComment, + userId, + cardId, + boardId, + }); + } } } }, |