mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Return promise in reporting jobs API (#24769)
This commit is contained in:
parent
ad10c758c0
commit
69d25d8e50
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export function jobs(server) {
|
|||
handler: (request) => {
|
||||
const { docId } = request.params;
|
||||
|
||||
jobsQuery.get(request.pre.user, docId, { includeContent: true })
|
||||
return jobsQuery.get(request.pre.user, docId, { includeContent: true })
|
||||
.then((doc) => {
|
||||
if (!doc) {
|
||||
return boom.notFound();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue