Skip to content

Commit

Permalink
Update get-software.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eashaw committed Dec 20, 2024
1 parent 493487f commit a2cd367
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ee/bulk-operations-dashboard/api/controllers/get-software.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ module.exports = {
let softwareWithSoftwarePackages = _.filter(softwareForThisTeam, (software)=>{
return !_.isEmpty(software.software_package);
});
for(let softwareWithInstaller of softwareWithSoftwarePackages) {

let softwarePackagesWithNoDownloadUrl = _.filter(softwareWithSoftwarePackages, (software)=>{
let softwarePackage = software.software_package;
return softwarePackage.package_url !== undefined;
});
for(let softwareWithInstaller of softwarePackagesWithNoDownloadUrl) {
let softwareWithInstallerResponse = await sails.helpers.http.get.with({
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true`,
baseUrl: sails.config.custom.fleetBaseUrl,
Expand Down

0 comments on commit a2cd367

Please sign in to comment.