Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
measurements: {
duration: diffInMilliseconds(startRequestTime)
},
name: appInsightsEventName,
properties: {
...appInsightsEventProps,
success: "true"
}
});
//
// respond to request
//
// redirect the client to the message resource
return ResponseSuccessRedirectToResource(
newMessageWithoutContent,
`/api/v1/messages/${fiscalCode}/${newMessageWithoutContent.id}`,
{ id: newMessageWithoutContent.id }
);
};
}