From 340a04de4759679e1e394cb332ec0cbb2b20ffa5 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Sat, 18 Mar 2023 03:35:49 -0400 Subject: [PATCH] fix(striker-ui-api): change sequence number type in manifest detail --- .../lib/request_handlers/manifest/getManifestDetail.ts | 10 +--------- striker-ui-api/src/types/APIManifest.d.ts | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts b/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts index ac6752b1..e0c24bd1 100644 --- a/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts +++ b/striker-ui-api/src/lib/request_handlers/manifest/getManifestDetail.ts @@ -235,16 +235,8 @@ export const getManifestDetail: RequestHandler = (request, response) => { ntpCsv, }, prefix, - sequence, + sequence: Number.parseInt(sequence), }; - stdout( - `Extracted install manifest data:\n${JSON.stringify( - manifestData, - null, - 2, - )}`, - ); - response.status(200).send(manifestData); }; diff --git a/striker-ui-api/src/types/APIManifest.d.ts b/striker-ui-api/src/types/APIManifest.d.ts index b2f3fe2d..0c433240 100644 --- a/striker-ui-api/src/types/APIManifest.d.ts +++ b/striker-ui-api/src/types/APIManifest.d.ts @@ -69,7 +69,7 @@ type ManifestDetail = { ntpCsv: string; }; prefix: string; - sequence: string; + sequence: number; }; type ManifestTemplate = {