(ctx)
| 34 | * @returns {*} the result |
| 35 | */ |
| 36 | export function response(ctx) { |
| 37 | if (ctx.error) { |
| 38 | util.error(ctx.error.message, ctx.error.type); |
| 39 | } |
| 40 | return ctx.result.hits.hits.map((hit) => hit._source); |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected