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 { } else {
CardComments.insert({ const userId = data.userId;
text: newComment, if (userId) {
cardId, CardComments.insert({
boardId, text: newComment,
}); userId,
cardId,
boardId,
});
}
} }
} }
}, },