Skip to content

Commit 697e446

Browse files
committed
linting
1 parent 80519fa commit 697e446

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lambdas/api-handler/src/handlers/get-mi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function createGetMIHandler(deps: Deps): APIGatewayProxyHandler {
4444
});
4545

4646
// metric with count 1 specifying the supplier
47-
const dimensions: Record<string, string> = {supplierId: supplierId};
47+
const dimensions: Record<string, string> = { supplierId: supplierId };
4848
emitMetric("getMi", dimensions, deps.logger, MetricStatus.Success, 1);
4949

5050
// metric displaying the type/number of lineItems posted per supplier
@@ -56,16 +56,16 @@ export default function createGetMIHandler(deps: Deps): APIGatewayProxyHandler {
5656
body: JSON.stringify(result, null, 2),
5757
};
5858
} catch (error) {
59-
emitMetric("getMi", {supplierId: supplierId}, deps.logger, MetricStatus.Failure, 1);
59+
emitMetric("getMi", { supplierId: supplierId }, deps.logger, MetricStatus.Failure, 1);
6060
return processError(error, commonIds.value.correlationId, deps.logger);
6161
}
6262
};
6363
}
6464

6565
function emitMetric(source: string, dimensions: Record<string, string>, logger: pino.Logger, key: string, value: number){
6666
const metric: MetricEntry = {
67-
key: key,
68-
value: value,
67+
key,
68+
value,
6969
unit: Unit.Count,
7070
};
7171
const emf = buildEMFObject(source, dimensions, metric);

0 commit comments

Comments
 (0)