From 2db646a91499c003dad5a74cc5ec1716a3e3a4fc Mon Sep 17 00:00:00 2001 From: busma13 Date: Thu, 5 Sep 2024 10:57:34 -0700 Subject: [PATCH] remove unneded type --- packages/teraslice/src/lib/cluster/services/api.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/teraslice/src/lib/cluster/services/api.ts b/packages/teraslice/src/lib/cluster/services/api.ts index a4e65529a83..13c335e8592 100644 --- a/packages/teraslice/src/lib/cluster/services/api.ts +++ b/packages/teraslice/src/lib/cluster/services/api.ts @@ -6,7 +6,7 @@ import { parseErrorInfo, parseList, logError, TSError, startsWith, Logger, pWhile } from '@terascope/utils'; -import { ExecutionStatusEnum, ListDeletedOption } from '@terascope/types'; +import { ExecutionStatusEnum } from '@terascope/types'; import { ClusterMasterContext, TerasliceRequest, TerasliceResponse } from '../../../interfaces.js'; import { makeLogger } from '../../workers/helpers/terafoundation.js'; import { ExecutionService, JobsService, ClusterServiceType } from '../services/index.js'; @@ -289,7 +289,7 @@ export class ApiService { const requestHandler = handleTerasliceRequest(req as TerasliceRequest, res, 'Could not retrieve list of jobs'); requestHandler(() => { - validateGetDeletedOption(deleted as ListDeletedOption); + validateGetDeletedOption(deleted as string); const partialQuery = createJobActiveQuery(active as string); const query = addDeletedToQuery(deleted as string, partialQuery); @@ -463,7 +463,7 @@ export class ApiService { const requestHandler = handleTerasliceRequest(req as TerasliceRequest, res, 'Could not retrieve list of execution contexts'); requestHandler(async () => { - validateGetDeletedOption(deleted as ListDeletedOption); + validateGetDeletedOption(deleted as string); const statuses = parseList(status); let partialQuery = 'ex_id:*'; @@ -561,7 +561,7 @@ export class ApiService { const requestHandler = handleTerasliceRequest(req as TerasliceRequest, res, 'Could not get all jobs'); requestHandler(async () => { - validateGetDeletedOption(deleted as ListDeletedOption); + validateGetDeletedOption(deleted as string); if (deleted !== 'false') { defaults.push('_deleted_on'); @@ -587,7 +587,7 @@ export class ApiService { const requestHandler = handleTerasliceRequest(req as TerasliceRequest, res, 'Could not get all executions'); requestHandler(async () => { - validateGetDeletedOption(deleted as ListDeletedOption); + validateGetDeletedOption(deleted as string); if (deleted !== 'false') { defaults.push('_deleted_on');