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,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,
});
}
}
}
},