Closed borsatti2 closed 2 months ago
Fixed in 2024.5.3
(WAHA Plus)
if there is one active (connected) then, do not perform any action
If you perform two POST /api/sessions
request with the same name, like
{
"name": "sessionname",
}
It return response with status code 422 and payload:
{
"statusCode": 422,
"message": "Session 'default3' is already started.",
"error": "Unprocessable Entity"
}
You could create a system that if you try to create a session with the same name, it returns a failure, if the session exists and they are not active, then close it and open a new one, if there is one active (connected) then, do not perform any action