1
0
Fork 0
mirror of synced 2024-06-17 10:14:50 +12:00

Fixed missing param

This commit is contained in:
Eldad Fux 2020-05-01 09:27:02 +03:00
parent a9fac79207
commit 5f79dc2e8a
2 changed files with 5 additions and 6 deletions

View file

@ -433,7 +433,7 @@ $utopia->patch('/v1/users/:userId/prefs')
);
$utopia->delete('/v1/users/:userId/sessions/:session')
$utopia->delete('/v1/users/:userId/sessions/:sessionId')
->desc('Delete User Session')
->label('scope', 'users.write')
->label('sdk.platform', [APP_PLATFORM_SERVER])

View file

@ -3922,14 +3922,13 @@
throw new Error('Missing required parameter: "sessionId"');
}
let path = '/users/{userId}/sessions/:session'.replace(new RegExp('{userId}', 'g'), userId);
let path = '/users/{userId}/sessions/{sessionId}'
.replace(new RegExp('{userId}', 'g'), userId)
.replace(new RegExp('{sessionId}', 'g'), sessionId)
;
let payload = {};
if(sessionId) {
payload['sessionId'] = sessionId;
}
return http
.delete(path, {
'content-type': 'application/json',