mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-11 01:10:11 +01:00
resolves #1156
Fixed prisma command response on api workspace update-embeddings
This commit is contained in:
parent
a3b7239d05
commit
37f4db36a6
@ -436,9 +436,9 @@ function apiWorkspaceEndpoints(app) {
|
||||
|
||||
await Document.removeDocuments(currWorkspace, deletes);
|
||||
await Document.addDocuments(currWorkspace, adds);
|
||||
const updatedWorkspace = await Workspace.get(
|
||||
`id = ${Number(currWorkspace.id)}`
|
||||
);
|
||||
const updatedWorkspace = await Workspace.get({
|
||||
id: Number(currWorkspace.id),
|
||||
});
|
||||
response.status(200).json({ workspace: updatedWorkspace });
|
||||
} catch (e) {
|
||||
console.log(e.message, e);
|
||||
|
Loading…
Reference in New Issue
Block a user