refactor: max number of record that return
This commit is contained in:
parent
eed1a863d3
commit
9b2bff6ba5
4 changed files with 9 additions and 2 deletions
|
|
@ -128,6 +128,7 @@ export class FileController extends Controller {
|
|||
pathname: `${cabinetName}/${drawerName}/${folderName}/`,
|
||||
},
|
||||
},
|
||||
size: 10000,
|
||||
});
|
||||
|
||||
const records = search.hits.hits
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@ export class SubFolderFileController extends Controller {
|
|||
pathname: `${cabinetName}/${drawerName}/${folderName}/${subFolderName}`,
|
||||
},
|
||||
},
|
||||
size: 10000,
|
||||
});
|
||||
|
||||
const records = search.hits.hits
|
||||
|
|
|
|||
|
|
@ -549,6 +549,7 @@ export function RegisterRoutes(app: Router) {
|
|||
});
|
||||
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
||||
app.post('/search',
|
||||
authenticateMiddleware([{"bearerAuth":[]}]),
|
||||
...(fetchMiddlewares<RequestHandler>(SearchController)),
|
||||
...(fetchMiddlewares<RequestHandler>(SearchController.prototype.searchFile)),
|
||||
|
||||
|
|
|
|||
|
|
@ -1257,7 +1257,7 @@
|
|||
"operationId": "SearchFile",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"description": "สำเร็จ",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
|
|
@ -1273,7 +1273,11 @@
|
|||
"tags": [
|
||||
"Search"
|
||||
],
|
||||
"security": [],
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": []
|
||||
}
|
||||
],
|
||||
"parameters": [],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue