Skip to content

Commit

Permalink
Run format
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Nov 23, 2021
1 parent 44a4fd9 commit 62b4098
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 7 additions & 4 deletions handlers/blue.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { asValue } from 'awilix'
import { invokeHandler } from '../index.js'
import { envString } from '@pureskillgg/ace'

import { invokeHandler } from '../index.js'

const registerDependencies = (container, config) => {
container.register({ rank: asValue(config.rank) })
}
Expand All @@ -10,9 +11,11 @@ const parameters = {
rank: envString('RANK')
}

const createProcessor = ({ rank }) => async (event, ctx) => {
return { ...event, rank }
}
const createProcessor =
({ rank }) =>
async (event, ctx) => {
return { ...event, rank }
}

export const createHandler = invokeHandler({
registerDependencies,
Expand Down
11 changes: 5 additions & 6 deletions handlers/red.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ const parameters = {
blueLambdaFunction: ssmString('BLUE_LAMBDA_FUNCTION_SSM_PATH')
}

const createProcessor = ({ blueLambdaClient, log }) => async (
event,
ctx
) => {
return blueLambdaClient.invokeJson(event)
}
const createProcessor =
({ blueLambdaClient, log }) =>
async (event, ctx) => {
return blueLambdaClient.invokeJson(event)
}

const registerDependencies = (container, config) => {
container.register(
Expand Down

0 comments on commit 62b4098

Please sign in to comment.