Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function ResponseErrorQuery(
detail: string,
error: DocumentDb.QueryError
): IResponseErrorQuery {
return {
...ResponseErrorGeneric(
HttpStatusCodeEnum.HTTP_STATUS_500,
`Query error (${error.code})`,
detail
),
kind: "IResponseErrorQuery"
};
}