Fixed missing param
This commit is contained in:
parent
a9fac79207
commit
5f79dc2e8a
|
@ -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')
|
->desc('Delete User Session')
|
||||||
->label('scope', 'users.write')
|
->label('scope', 'users.write')
|
||||||
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
->label('sdk.platform', [APP_PLATFORM_SERVER])
|
||||||
|
|
|
@ -3922,14 +3922,13 @@
|
||||||
throw new Error('Missing required parameter: "sessionId"');
|
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 = {};
|
let payload = {};
|
||||||
|
|
||||||
if(sessionId) {
|
|
||||||
payload['sessionId'] = sessionId;
|
|
||||||
}
|
|
||||||
|
|
||||||
return http
|
return http
|
||||||
.delete(path, {
|
.delete(path, {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
|
Loading…
Reference in a new issue