move secret scanning to main container

This commit is contained in:
Maidul Islam
2023-07-16 16:48:36 -04:00
parent d69465517f
commit 8c844fb188
18 changed files with 5176 additions and 1704 deletions
@@ -72,7 +72,7 @@ export const getCurrentOrganizationInstallationStatus = async (req: Request, res
export const getRisksForOrganization = async (req: Request, res: Response) => {
const { organizationId } = req.params
const risks = await GitRisks.find({ organization: organizationId, status: STATUS_UNRESOLVED }).lean()
const risks = await GitRisks.find({ organization: organizationId, status: STATUS_UNRESOLVED }).sort({ createdAt: -1 }).lean()
res.json({
risks: risks
})