Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jan 18, 2025
1 parent 0490feb commit e0d1790
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/langchain-azure-cosmosdb/src/chat_histories/mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,11 @@ export class AzureCosmosDBMongoChatMessageHistory extends BaseListChatMessageHis

async getAllSessions(): Promise<ChatSessionMongo[]> {
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],
Expand Down

0 comments on commit e0d1790

Please sign in to comment.