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:
Timothy Carambat
2025-07-10 16:42:10 -07:00
committed by GitHub
parent ae2fa8805c
commit ea956f4d77
30 changed files with 422 additions and 30 deletions

View File

@@ -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) {