mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Enterprise Search] Fix bug with pagination on fetch sync jobs (#150206)
## Summary Fixes an API validation bug I missed when updating pagination.
This commit is contained in:
parent
eee58fa7f2
commit
5465ac725c
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ export function registerConnectorRoutes({ router, log }: RouteDependencies) {
|
|||
connectorId: schema.string(),
|
||||
}),
|
||||
query: schema.object({
|
||||
page: schema.number({ defaultValue: 0, min: 0 }),
|
||||
from: schema.number({ defaultValue: 0, min: 0 }),
|
||||
size: schema.number({ defaultValue: 10, min: 0 }),
|
||||
}),
|
||||
},
|
||||
|
@ -169,7 +169,7 @@ export function registerConnectorRoutes({ router, log }: RouteDependencies) {
|
|||
const result = await fetchSyncJobsByConnectorId(
|
||||
client,
|
||||
request.params.connectorId,
|
||||
request.query.page,
|
||||
request.query.from,
|
||||
request.query.size
|
||||
);
|
||||
return response.ok({ body: result });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue