From e0d17905a626f3b644c79010967eaf78fd38372a Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 17 Jan 2025 23:59:10 -0800 Subject: [PATCH] Format --- .../src/chat_histories/mongodb.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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],