Skip to content

Commit

Permalink
lint: remove extra semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
wzyboy committed May 21, 2024
1 parent 5647f3a commit 95a934f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/aws-lambda/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html
*/

exports.handler = async function (event, context) {
process.env.VERCEL_URL = event.requestContext.domainName;
process.env.VERCEL_URL = event.requestContext.domainName
process.env.TWIKOO_IP_HEADERS = JSON.stringify([
'headers.requestContext.http.sourceIp'
])
Expand All @@ -22,9 +22,9 @@ exports.handler = async function (event, context) {
}
try {
if (event.isBase64Encoded) {
request.body = JSON.parse(Buffer.from(event.body, 'base64').toString('utf-8'));
request.body = JSON.parse(Buffer.from(event.body, 'base64').toString('utf-8'))
} else {
request.body = JSON.parse(event.body);
request.body = JSON.parse(event.body)
}
} catch (e) {}
const response = {
Expand Down

0 comments on commit 95a934f

Please sign in to comment.