From 66b45ed35c2bd3768dd479bdc3b0e9988de7825b Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Thu, 18 Jul 2019 13:06:25 -0500 Subject: Fix invites --- client/components/boards/boardsList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/boards') diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index cc586b1f..b1371747 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -82,13 +82,13 @@ BlazeComponent.extendComponent({ }, 'click .js-accept-invite'() { const boardId = this.currentData()._id; - Meteor.user().removeInvite(boardId); + Meteor.call('acceptInvite', boardId); }, 'click .js-decline-invite'() { const boardId = this.currentData()._id; Meteor.call('quitBoard', boardId, (err, ret) => { if (!err && ret) { - Meteor.user().removeInvite(boardId); + Meteor.call('acceptInvite', boardId); FlowRouter.go('home'); } }); -- cgit v1.2.3-1-g7c22