Skip to content

Commit

Permalink
feat(http-trigger-v4): make the adapter more flexible to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Jul 16, 2022
1 parent 2e2dea2 commit 96a5c15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/adapters/azure/http-trigger-v4.adapter.ts
Expand Up @@ -84,10 +84,16 @@ export class HttpTriggerV4Adapter

return !!(
maybeEvent &&
maybeEvent.method &&
maybeEvent.headers &&
maybeEvent.url &&
maybeEvent.query &&
maybeContext &&
maybeContext.traceContext &&
maybeContext.bindingDefinitions &&
typeof maybeEvent.parseFormBody === 'function'
maybeContext.log &&
maybeContext.log.info &&
maybeContext.bindingData
);
}

Expand Down

0 comments on commit 96a5c15

Please sign in to comment.