upload to the right place

This commit is contained in:
Luke Berndt
2023-02-25 18:15:42 -05:00
parent 52b1a32f0d
commit 5ffa214607

View File

@@ -278,12 +278,12 @@ const packageEvent = (eventId) => {
createEventZip(tmpEventFolder, zipFile, eventFolder);
await uploadFile(zipFile, s3ZipFile);
var downloadUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3ZipFile;
var podcastUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3PodcastFile;
const downloadUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3ZipFile;
const podcastUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3PodcastFile;
event.downloadUrl = downloadUrl;
await event.save();
await createPodcast(tmpEventFolder, podcastFile, event);
await uploadFile(podcastFile,podcastUrl);
await uploadFile(podcastFile,s3PodcastFile);
await savePodcast(event,podcastUrl);
console.log("uploaded to: " + podcastUrl);