-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously hard quote injector was built in the same index exports file as the indicative quote injector, causing even indicative quote setup to require a KMS_KEY_ID environment variable. This commit separates the export into a separate file to decouple the env pulling. Future improvement should do this same separation for rest of the lambdas as well instead of having a global handlers/index
- Loading branch information
Showing
3 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
import { QuoteHandler } from './handler'; | ||
import { QuoteInjector } from './injector'; | ||
export { QuoteHandler as HardQuoteHandler } from './handler'; | ||
export { ContainerInjected, QuoteInjector as HardQuoteInjector, RequestInjected } from './injector'; | ||
export { RequestInjected, ContainerInjected, QuoteInjector as HardQuoteInjector } from './injector'; | ||
export * from './schema'; | ||
|
||
const hardQuoteInjectorPromise = new QuoteInjector('hardQuoteInjector').build(); | ||
const hardQuoteHandler = new QuoteHandler('hardQuoteHandler', hardQuoteInjectorPromise); | ||
|
||
module.exports = { | ||
hardQuoteHandler: hardQuoteHandler.handler, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters