diff --git a/libs/langchain-azure-cosmosdb/src/chat_histories/mongodb.ts b/libs/langchain-azure-cosmosdb/src/chat_histories/mongodb.ts index 1ebd3f65d02b..8a0ba0264160 100644 --- a/libs/langchain-azure-cosmosdb/src/chat_histories/mongodb.ts +++ b/libs/langchain-azure-cosmosdb/src/chat_histories/mongodb.ts @@ -173,9 +173,11 @@ export class AzureCosmosDBMongoChatMessageHistory extends BaseListChatMessageHis async getAllSessions(): Promise { await this.initialize(); - const documents = await this.collection.find({ - [ID_USER]: this.userId, - }).toArray(); + const documents = await this.collection + .find({ + [ID_USER]: this.userId, + }) + .toArray(); const chatSessions: ChatSessionMongo[] = documents.map((doc) => ({ id: doc[ID_KEY],