From e2b713282cac9076ba9f8bb2df8da26586a5bdae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 16 Mar 2021 07:44:18 +0000 Subject: [PATCH] Fix error Service should be called with new --- bin/lambda.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lambda.js b/bin/lambda.js index a73218f..d4b622b 100644 --- a/bin/lambda.js +++ b/bin/lambda.js @@ -1,4 +1,5 @@ -const s3 = new require('aws-sdk').S3(); +const AWS = require('aws-sdk'); +const s3 = new AWS.S3(); const ylt = require('..'); // noinspection JSUnusedLocalSymbols