diff --git a/p2c.go b/p2c.go index 63861aa..0f0281a 100644 --- a/p2c.go +++ b/p2c.go @@ -257,7 +257,7 @@ func uploadToS3(destination, filePath, region, queryName string) { return } - objectKey := fmt.Sprintf("%s/%s-%s.csv", s3Path, "latest", cleanedQueryName) + objectKey = fmt.Sprintf("%s/%s-%s.csv", s3Path, "latest", cleanedQueryName) _, err = svc.PutObject(&s3.PutObjectInput{ Bucket: aws.String(bucketName), Key: aws.String(objectKey),