File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " breakout-api-client" ,
3
- "version" : " 0.17.2 " ,
3
+ "version" : " 0.18.0 " ,
4
4
"description" : " A JS Api client for the breakout-backend" ,
5
5
"main" : " src/BreakoutApi.js" ,
6
6
"directories" : {
Original file line number Diff line number Diff line change @@ -505,12 +505,12 @@ class BreakoutApi {
505
505
. then ( resp => resp . data ) ;
506
506
}
507
507
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 ) ;
510
510
}
511
511
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 ) ;
514
514
}
515
515
516
516
swapPasswords ( userId ) {
You can’t perform that action at this time.
0 commit comments