Skip to content

Commit

Permalink
Remove type to prevent dist path shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarat committed Nov 21, 2023
1 parent 6d9fea2 commit a741518
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/api/src/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { go, goSync } from '@api3/promise-utils';
import { isEmpty, isNil, omit, size } from 'lodash';

import type { SignedApiResponse } from '../../pusher/src/validation/schema';

import { getConfig } from './config';
import { CACHE_HEADERS, COMMON_HEADERS } from './constants';
import { deriveBeaconId, recoverSignerAddress } from './evm';
Expand Down Expand Up @@ -112,15 +110,13 @@ export const batchInsertData = async (requestBody: unknown): Promise<ApiResponse
return generateErrorResponse(500, 'Unable to remove outdated cache data', goPruneCache.error.message);
}

const response: SignedApiResponse = {
count: newSignedData.length,
skipped: batchSignedData.length - newSignedData.length,
};

return {
statusCode: 201,
headers: COMMON_HEADERS,
body: JSON.stringify(response),
body: JSON.stringify({
count: newSignedData.length,
skipped: batchSignedData.length - newSignedData.length,
}),
};
};

Expand Down

0 comments on commit a741518

Please sign in to comment.