This commit is contained in:
timothycarambat 2024-06-07 10:09:35 -07:00
parent bb0a4b0531
commit 3434bf4686
2 changed files with 5 additions and 15 deletions

View File

@ -262,7 +262,10 @@ function apiSystemEndpoints(app) {
try {
const { names } = reqBody(request);
for await (const name of names) await purgeDocument(name);
response.status(200).json({ success: true, message: 'Documents removed successfully' }).end();
response
.status(200)
.json({ success: true, message: "Documents removed successfully" })
.end();
} catch (e) {
console.log(e.message, e);
response.sendStatus(500).end();

View File

@ -2251,7 +2251,7 @@
"parameters": [],
"responses": {
"200": {
"description": "OK",
"description": "Documents removed successfully.",
"content": {
"application/json": {
"schema": {
@ -2306,19 +2306,6 @@
}
}
}
},
"components": {
"schemas": {
"InvalidAPIKey": {
"type": "object",
"properties": {
"error": {
"type": "string",
"example": "Invalid API Key"
}
}
}
}
}
},
"components": {