Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ class ExecuteFlow_Agentflow implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const chatflows = await appDataSource.getRepository(databaseEntities['ChatFlow']).findBy(searchOptions)

for (let i = 0; i < chatflows.length; i += 1) {
Expand Down
4 changes: 0 additions & 4 deletions packages/components/nodes/agentflow/Retriever/Retriever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ class Retriever_Agentflow implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const stores = await appDataSource.getRepository(databaseEntities['DocumentStore']).findBy(searchOptions)
for (const store of stores) {
if (store.status === 'UPSERTED') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ class OpenAIAssistant_Agents implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const assistants = await appDataSource.getRepository(databaseEntities['Assistant']).findBy({
...searchOptions,
type: 'OPENAI'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ class DocStore_DocumentLoaders implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const stores = await appDataSource.getRepository(databaseEntities['DocumentStore']).findBy(searchOptions)
for (const store of stores) {
if (store.status === 'SYNC') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ class ExecuteFlow_SeqAgents implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const chatflows = await appDataSource.getRepository(databaseEntities['ChatFlow']).findBy(searchOptions)

for (let i = 0; i < chatflows.length; i += 1) {
Expand Down
4 changes: 0 additions & 4 deletions packages/components/nodes/tools/ChatflowTool/ChatflowTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ class ChatflowTool_Tools implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const chatflows = await appDataSource.getRepository(databaseEntities['ChatFlow']).findBy(searchOptions)

for (let i = 0; i < chatflows.length; i += 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ class DocStore_VectorStores implements INode {
}

const searchOptions = options.searchOptions || {}
searchOptions.where = {
...searchOptions.where,
userId: options.userId
}
const stores = await appDataSource.getRepository(databaseEntities['DocumentStore']).findBy(searchOptions)
for (const store of stores) {
if (store.status === 'UPSERTED') {
Expand Down