File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ const getRoleMembers = (role) => (
130
130
const getUsersById = ( ids ) => {
131
131
132
132
let query = ""
133
- if ( ids . length > 1 ) {
133
+ if ( ids . length > 1 ) {
134
134
query = _ . map ( ids , ( id ) => 'userIds=' + id ) . join ( '&' ) ;
135
- } else if ( ids . length == 1 ) {
135
+ } else if ( ids . length == 1 ) {
136
136
query = 'userId=' + ids [ 0 ] ;
137
137
}
138
138
return M2m . getMachineToken ( config . AUTH0_CLIENT_ID , config . AUTH0_CLIENT_SECRET )
@@ -147,7 +147,7 @@ const getUsersById = (ids) => {
147
147
. set ( 'accept' , 'application/json' )
148
148
. set ( 'authorization' , `Bearer ${ token } ` )
149
149
. then ( ( res ) => {
150
- if ( res . status != 200 ) {
150
+ if ( res . status != 200 ) {
151
151
throw new Error ( `Failed to get users by ids: ${ ids } ` ) ;
152
152
}
153
153
const users = JSON . parse ( _ . get ( res , 'text' ) ) ;
You can’t perform that action at this time.
0 commit comments