diff --git a/src/app.controller.ts b/src/app.controller.ts index 556fcfc..d2f2cf3 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -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); - } - } - } diff --git a/src/app.service.ts b/src/app.service.ts index cd99d22..77fd4d8 100644 --- a/src/app.service.ts +++ b/src/app.service.ts @@ -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, {