Skip to content

Commit 24a2719

Browse files
authored
Merge pull request #1308 from guardian/tf-log-auxia-type
Log auxiaInteractionType
2 parents e67c0fc + b52cfe2 commit 24a2719

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/server/api/auxiaProxyRouter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export const buildAuxiaProxyRouter = (config: AuxiaRouterConfig): Router => {
236236
);
237237
res.locals.auxiaTreatmentId = req.body.treatmentId;
238238
res.locals.auxiaTreatmentTrackingId = req.body.treatmentTrackingId;
239+
res.locals.auxiaInteractionType = req.body.interactionType;
239240
res.send({ status: true }); // this is the proxy's response, slightly more user's friendly than the api's response.
240241
} catch (error) {
241242
next(error);

src/server/middleware/logging.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const logging = (
2525
responseTimeInMs: Math.round(responseTimeMs),
2626
auxiaTreatmentId: res.locals.auxiaTreatmentId,
2727
auxiaTreatmentTrackingId: res.locals.auxiaTreatmentTrackingId,
28+
auxiaInteractionType: res.locals.auxiaInteractionType,
2829
});
2930
});
3031
next();

0 commit comments

Comments
 (0)