UNPKG

lambda-hooks

Version:

Super simple lightweight hooks to avoid repeated logic in your lambda functions

11 lines (10 loc) 310 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleScheduledEvent = async (state) => { const { event } = state; if (event['detail-type'] === 'Scheduled Event') { state.exit = true; state.response = { statusCode: 200 }; } return state; };