File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ const db = (connection: ConnectionREST): DBUsers => {
126126 connection . postNoBody < APIKeyResponse > ( `/users/db/${ userId } /rotate-key` ) . then ( ( resp ) => resp . apikey ) ,
127127 activate : ( userId : string ) =>
128128 connection
129- . postNoBody ( `/users/db/${ userId } /activate` )
129+ . postEmpty < null > ( `/users/db/${ userId } /activate` , null )
130130 . then ( ( ) => true )
131131 . catch ( allowCode ( 409 ) ) ,
132132 deactivate : ( userId : string ) =>
133133 connection
134- . postNoBody ( `/users/db/${ userId } /deactivate` )
134+ . postEmpty < null > ( `/users/db/${ userId } /deactivate` , null )
135135 . then ( ( ) => true )
136136 . catch ( allowCode ( 409 ) ) ,
137137 byName : ( userId : string ) => connection . get < WeaviateDBUser > ( `/users/db/${ userId } ` , true ) . then ( Map . dbUser ) ,
@@ -178,8 +178,7 @@ const namespacedUsers = (connection: ConnectionREST): NamespacedUsers => {
178178 getAssignedRoles : ( userType : UserTypeInternal , userId : string , opts ?: GetAssingedRolesOptions ) =>
179179 connection
180180 . get < WeaviateRole [ ] > (
181- `/authz/users/${ userId } /roles/${ userType } ${
182- opts ?. includePermissions ? '?&includeFullRoles=true' : ''
181+ `/authz/users/${ userId } /roles/${ userType } ${ opts ?. includePermissions ? '?&includeFullRoles=true' : ''
183182 } `
184183 )
185184 . then ( Map . roles ) ,
You can’t perform that action at this time.
0 commit comments