Local history for scrubbing.
This commit is contained in:
@@ -24,8 +24,11 @@ interface ScrubResponse {
|
||||
|
||||
export const handler = async (event: APIGatewayProxyEvent): Promise<APIGatewayProxyResult> => {
|
||||
try {
|
||||
const { esApiKey, rawJob } = JSON.parse(event.body || '{}') as ScrubRequest;
|
||||
|
||||
const {
|
||||
//esApiKey,
|
||||
rawJob,
|
||||
} = JSON.parse(event.body || '{}') as ScrubRequest;
|
||||
const esApiKey = event.headers['x-api-key'] || '';
|
||||
//await uploadJobToHasura(rawJob, esApiKey);
|
||||
// Transform the raw job object to ES format
|
||||
const estimate: ESJobObject = await transformJobForEstimateScrubber(rawJob);
|
||||
|
||||
Reference in New Issue
Block a user