Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ export class Sessions extends BaseModule {

async updateInternal(
params: types.UpdateAgentEngineSessionRequestParameters,
): Promise<types.AgentEngineSessionOperation> {
let response: Promise<types.AgentEngineSessionOperation>;
): Promise<types.Session> {
let response: Promise<types.Session>;

let path: string = '';
let queryParams: Record<string, string> = {};
Expand All @@ -262,10 +262,10 @@ export class Sessions extends BaseModule {
})
.then((httpResponse) => {
return httpResponse.json();
}) as Promise<types.AgentEngineSessionOperation>;
}) as Promise<types.Session>;

return response.then((resp) => {
return resp as types.AgentEngineSessionOperation;
return resp as types.Session;
});
} else {
throw new Error(
Expand Down
Loading