refactor: remove unnecessary assignment of parentMessageId (agent request handler)

This commit is contained in:
Danny Avila 2024-09-03 08:04:19 -04:00
parent b615c4c7ec
commit b41e39e6e5
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364

View file

@ -88,11 +88,6 @@ const AgentController = async (req, res, next, initializeClient, addTitle) => {
}; };
let response = await client.sendMessage(text, messageOptions); let response = await client.sendMessage(text, messageOptions);
if (overrideParentMessageId) {
response.parentMessageId = overrideParentMessageId;
}
response.endpoint = endpointOption.endpoint; response.endpoint = endpointOption.endpoint;
const { conversation = {} } = await client.responsePromise; const { conversation = {} } = await client.responsePromise;