Showing 1 of 3 total issues
Function handler
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const handler = async (event, context, callback) => {
if (!Object.prototype.hasOwnProperty.call(event, 'AIRTABLE_BASE') || !Object.hasOwnProperty.call(event, 'AIRTABLE_TABLES') || !Object.hasOwnProperty.call(event, 'S3_DIRECTORY')) {
const err = Error(`Can't access to AIRTABLE_BASE or AIRTABLE_TABLES or S3_DIRECTORY in the event variable`);
Epsagon.setError(err);
throw err;