Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Commit a29b026

Browse files
committed
Merge pull request #28 from uber/bugfix/leave-endpoint
Fix leave and join to use non-deprecated endpoint
2 parents 2e9abd8 + 01d3683 commit a29b026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/admin-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ AdminClient.prototype.destroy = function destroy() {
4141
};
4242

4343
AdminClient.prototype.join = function join(host, callback) {
44-
this.request(host, '/admin/join', null, null, callback);
44+
this.request(host, '/admin/member/join', null, null, callback);
4545
};
4646

4747
AdminClient.prototype.leave = function leave(host, callback) {
48-
this.request(host, '/admin/leave', null, null, callback);
48+
this.request(host, '/admin/member/leave', null, null, callback);
4949
};
5050

5151
AdminClient.prototype.lookup = function lookup(host, key, callback) {

0 commit comments

Comments
 (0)