web/src/lambda/orders.ts
Function handler
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const handler = async (event: APIGatewayEvent): Promise<any> => {
if (event.httpMethod !== 'POST' || !event.body) return statusReturn(400, '')
let data: {
token: string
}