Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f committed Oct 25, 2023
1 parent ee707cd commit 141e921
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/api/handlers/getUploadUrl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { response } from "../libs/handler";
import { APIGatewayEvent } from "aws-lambda";
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { v4 as uuidv4 } from "uuid";
Expand All @@ -10,9 +9,8 @@ const s3 = new S3Client({
region: process.env.attachmentsBucketRegion,
});

export const handler = async (event: APIGatewayEvent) => {
export const handler = async () => {
try {
const body = JSON.parse(event.body);
const bucket = process.env.attachmentsBucketName;
const key = uuidv4();
const url = await getSignedUrl(
Expand Down

0 comments on commit 141e921

Please sign in to comment.