feature/IO-3702-ESPD-UI-AND-FIXES - Stage 5 (Lint)
This commit is contained in:
2
serverless/.gitignore
vendored
2
serverless/.gitignore
vendored
@@ -29,3 +29,5 @@ yarn-error.log*
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
.
|
||||
.eslintcache
|
||||
@@ -27,7 +27,7 @@ interface EmsUploadResponse {
|
||||
* @param {string} esApiKey - The ES API Key to validate
|
||||
* @returns {boolean} - Always returns true for now (placeholder)
|
||||
*/
|
||||
function validateEmsUploadId(_esApiKey: string): boolean {
|
||||
function validateEmsUploadId(): boolean {
|
||||
// Placeholder validation - always returns true
|
||||
// TODO: Implement actual validation logic
|
||||
return true;
|
||||
@@ -54,7 +54,7 @@ export const handler = async (event: APIGatewayProxyEvent): Promise<APIGatewayPr
|
||||
}
|
||||
|
||||
// Validate the EMS Upload ID
|
||||
const isValid = validateEmsUploadId(esApiKey);
|
||||
const isValid = validateEmsUploadId();
|
||||
if (!isValid) {
|
||||
return {
|
||||
statusCode: 401,
|
||||
|
||||
Reference in New Issue
Block a user