From 6540ec760107648ad12fd8a5a2e2b6bf1bc3cce3 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 9 Dec 2024 14:54:46 -0600 Subject: [PATCH] MSP dashboard: Update edit-script and edit-profile inputs (#24567) Changes: - Updated the edit-script and edit-profile actions to make sure that new team IDs are always numbers. --- .../api/controllers/profiles/edit-profile.js | 2 +- .../api/controllers/scripts/edit-script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/bulk-operations-dashboard/api/controllers/profiles/edit-profile.js b/ee/bulk-operations-dashboard/api/controllers/profiles/edit-profile.js index 512fd95813..4752454238 100644 --- a/ee/bulk-operations-dashboard/api/controllers/profiles/edit-profile.js +++ b/ee/bulk-operations-dashboard/api/controllers/profiles/edit-profile.js @@ -15,7 +15,7 @@ module.exports = { required: true, }, newTeamIds: { - type: ['string'], + type: ['number'], description: 'An array of teams that this profile will be deployed on or Undefined if the profile is being removed from a team.' }, newProfile: { diff --git a/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js b/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js index ec8d30f182..8b19a82842 100644 --- a/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js +++ b/ee/bulk-operations-dashboard/api/controllers/scripts/edit-script.js @@ -15,7 +15,7 @@ module.exports = { required: true, }, newTeamIds: { - type: ['ref'], + type: ['number'], description: 'An array of teams that this script will be added to.' }, newScript: {