From fdfca2cf3ea4a38b5afb125c767ee04685684e94 Mon Sep 17 00:00:00 2001 From: Charles Coggins Date: Fri, 15 Nov 2024 11:39:47 -0600 Subject: [PATCH] Fix return type for `PhylumApi::getJobStatusRaw` This change corrects an oversight in the extensions API where the `getJobStatusRaw` endpoint was returning the results as if the `getJobStatus` endpoint was called instead. The return types are indeed different. --- cli/js/api.js | 3 ++- extensions/CHANGELOG.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/js/api.js b/cli/js/api.js index a92e1bd50..a96f94b24 100644 --- a/cli/js/api.js +++ b/cli/js/api.js @@ -13,6 +13,7 @@ import { get_current_project, get_groups, get_job_status, + get_job_status_raw, get_package_details, get_projects, get_refresh_token, @@ -107,7 +108,7 @@ export function getJobStatusRaw( jobId, ignoredPackages, ) { - return get_job_status(jobId, ignoredPackages); + return get_job_status_raw(jobId, ignoredPackages); } export function getCurrentProject() { diff --git a/extensions/CHANGELOG.md b/extensions/CHANGELOG.md index 09a0a4e2f..8e5479f56 100644 --- a/extensions/CHANGELOG.md +++ b/extensions/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## Unreleased +### Fixed + +- Incorrect return type for `PhylumApi::getJobStatusRaw` endpoint + ## 7.1.4 - 2024-11-07 ### Fixed