Skip to content

Commit

Permalink
Merge pull request #31 from Amruth-Vamshi/akai
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam authored Aug 24, 2023
2 parents 5373ed3 + 7d18baa commit a9288dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,4 @@ export class AppController {
this.logger.error('Error while emitting bot response', error);
}
}

@Post('/getClientId')
async adapterOutbound(@Request() req) {
try {
const { userId } = req.body;
const clientId: string = await this.cacheManager.get(userId);
return { status: 'OK', clientId };
} catch (error) {
this.logger.error('Could not get the clientId for this userId', error);
}
}

}
3 changes: 3 additions & 0 deletions src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ export class AppService {
context: req.content.context,
to: req.to,
messageId: this.randomId(),
identifier: req.content.identifier,
asrId: req.content.asrId
};
const params = JSON.stringify(reqst);
console.log('params',params)
this.logger.log({ message: `Adapter Request => ${params}` });
this.httpService
.post(`${adapterEndpoint}/prompt`, params, {
Expand Down

0 comments on commit a9288dc

Please sign in to comment.