MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / sendPolicyError

Function sendPolicyError

server/api/ChartRoute.js:34–37  ·  view source on GitHub ↗
(res, error)

Source from the content-addressed store, hash-verified

32 const teamController = new TeamController();
33
34 const sendPolicyError = (res, error) => {
35 if (!isOutboundPolicyError(error)) return false;
36 return res.status(400).send(serializeOutboundPolicyError(error));
37 };
38
39 const getPublicPasswordInput = (req) => {
40 return req.body?.password || req.query?.password || req.query?.pass || req.headers.pass;

Callers 1

ChartRoute.jsFile · 0.70

Calls 2

isOutboundPolicyErrorFunction · 0.85

Tested by

no test coverage detected