mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-26 09:35:25 +02:00
Add ability to search workspace and threads (#4120)
* Add ability to search workspace and threads * fix height * styling * update placeholder * Translations PR (#4122)
This commit is contained in:
@@ -100,12 +100,18 @@ const WorkspaceThread = {
|
||||
}
|
||||
},
|
||||
|
||||
where: async function (clause = {}, limit = null, orderBy = null) {
|
||||
where: async function (
|
||||
clause = {},
|
||||
limit = null,
|
||||
orderBy = null,
|
||||
include = null
|
||||
) {
|
||||
try {
|
||||
const results = await prisma.workspace_threads.findMany({
|
||||
where: clause,
|
||||
...(limit !== null ? { take: limit } : {}),
|
||||
...(orderBy !== null ? { orderBy } : {}),
|
||||
...(include !== null ? { include } : {}),
|
||||
});
|
||||
return results;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user