Skip to content

Commit

Permalink
remove unneded type
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Sep 5, 2024
1 parent e3501b5 commit 2db646a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/teraslice/src/lib/cluster/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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:*';
Expand Down Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 2db646a

Please sign in to comment.