You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deleteUsers is only deleting the first entry of the provided array of uid, see the following:
Relevant code snippet:
---SNIP---if(httpMethod==="DELETE"){const{ id }=event.queryStringParameters;if(!id)returnhandleError(newError("Please provide an id."),405);constuids=id.split(",");returnhandleDeleteRequest(tenantAuth,uids);}---SNIP---consthandleDeleteRequest=async(tenantAuth,uids)=>{try{console.log("handleDeleteRequest -> uids:",uids);constdeleteUserResults=awaittenantAuth.deleteUsers(uids);return{body: JSON.stringify({results: deleteUserResults}),headers: {"Content-Type": "application/json"},statusCode: 200,};}catch(error){returnhandleError(error);}};
uids value:
handleDeleteRequest -> uids: [ 'cbHxLH4TtKN8tREDACTED', ' PLrrHeqlphcHP1REDACTED' ]
Response with status 200 in 855 ms.
deleteUsers
is only deleting the first entry of the provided array ofuid
, see the following:Relevant code snippet:
uids
value:Server's response:
{"results":{"failureCount":0,"successCount":2,"errors":[]}}
Although success count shows 2 when going to the console only the first user is deleted. It seems that this function is buggy...
The text was updated successfully, but these errors were encountered: