Skip to content

Commit

Permalink
Merge pull request #618 from Automattic/fix/invites-accept-invite-call
Browse files Browse the repository at this point in the history
People: Invites: Fix call to accept invite endpoint
  • Loading branch information
lezama committed Nov 24, 2015
2 parents f74cde4 + 7b59004 commit 3f32227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/lib/wpcom-undocumented/lib/undocumented.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ Undocumented.prototype.getInvite = function( siteId, inviteKey, fn ) {
};

Undocumented.prototype.acceptInvite = function( siteId, inviteKey, fn ) {
debug( '/sites/:site_id:/invites/ query' );
this.wpcom.req.post( { path: '/sites/' + siteId + '/invites/' }, {}, { invite_key: inviteKey }, fn );
debug( '/sites/:site_id:/invites/:inviteKey:/accept query' );
this.wpcom.req.get( '/sites/' + siteId + '/invites/' + inviteKey + '/accept', fn );
};

/**
Expand Down

0 comments on commit 3f32227

Please sign in to comment.