File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " breakout-api-client" ,
3- "version" : " 0.17.2 " ,
3+ "version" : " 0.18.0 " ,
44 "description" : " A JS Api client for the breakout-backend" ,
55 "main" : " src/BreakoutApi.js" ,
66 "directories" : {
Original file line number Diff line number Diff line change @@ -505,12 +505,12 @@ class BreakoutApi {
505505 . then ( resp => resp . data ) ;
506506 }
507507
508- makeAdmin ( userId ) {
509- return this . instance . post ( `/admin/user/${ userId } /admin/` ) . then ( resp => resp . data ) ;
508+ makeAdmin ( userId , authority ) {
509+ return this . instance . post ( `/admin/user/${ userId } /admin/?authority= ${ authority } ` ) . then ( resp => resp . data ) ;
510510 }
511511
512- removeAdmin ( userId ) {
513- return this . instance . delete ( `/admin/user/${ userId } /admin/` ) . then ( resp => resp . data ) ;
512+ removeAdmin ( userId , authority ) {
513+ return this . instance . delete ( `/admin/user/${ userId } /admin/?authority= ${ authority } ` ) . then ( resp => resp . data ) ;
514514 }
515515
516516 swapPasswords ( userId ) {
You can’t perform that action at this time.
0 commit comments