Skip to content

Commit

Permalink
Return promise in reporting jobs API (elastic#24769)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Oct 29, 2018
1 parent 23118dc commit 152faec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/reporting/server/routes/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 152faec

Please sign in to comment.