From 65341be05499898f631bed0615b44e3a5cfefbed Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 15 Aug 2024 12:58:22 -0500 Subject: [PATCH] Update get-priority-vulnerabilities.js --- .../api/controllers/get-priority-vulnerabilities.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ee/vulnerability-dashboard/api/controllers/get-priority-vulnerabilities.js b/ee/vulnerability-dashboard/api/controllers/get-priority-vulnerabilities.js index 96a1ff8ba95e..9f55ec19c8d7 100644 --- a/ee/vulnerability-dashboard/api/controllers/get-priority-vulnerabilities.js +++ b/ee/vulnerability-dashboard/api/controllers/get-priority-vulnerabilities.js @@ -7,18 +7,14 @@ module.exports = { description: 'Returns information about priority CVEs.', extendedDescription: 'This code was previously in the view action for the dashboard page, but was moved to a separate action to reduce inital page laoding time.', - - inputs: { - - }, - - exits: { - + success: { + outputType: [{}], + }, }, - fn: async function (inputs) { + fn: async function () { // ┌─┐┌─┐┌┬┐ ┌─┐┬─┐┬┌─┐┬─┐┬┌┬┐┬ ┬ ┌─┐┬ ┬┌─┐ ┌─┐┬─┐┌─┐┌─┐┬─┐┌─┐┌─┐┌─┐ // │ ┬├┤ │ ├─┘├┬┘││ │├┬┘│ │ └┬┘ │ └┐┌┘├┤ ├─┘├┬┘│ ││ ┬├┬┘├┤ └─┐└─┐ // └─┘└─┘ ┴ ┴ ┴└─┴└─┘┴└─┴ ┴ ┴ └─┘ └┘ └─┘ ┴ ┴└─└─┘└─┘┴└─└─┘└─┘└─┘