mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
upload to the right place
This commit is contained in:
@@ -278,12 +278,12 @@ const packageEvent = (eventId) => {
|
|||||||
createEventZip(tmpEventFolder, zipFile, eventFolder);
|
createEventZip(tmpEventFolder, zipFile, eventFolder);
|
||||||
await uploadFile(zipFile, s3ZipFile);
|
await uploadFile(zipFile, s3ZipFile);
|
||||||
|
|
||||||
var downloadUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3ZipFile;
|
const downloadUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3ZipFile;
|
||||||
var podcastUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3PodcastFile;
|
const podcastUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3PodcastFile;
|
||||||
event.downloadUrl = downloadUrl;
|
event.downloadUrl = downloadUrl;
|
||||||
await event.save();
|
await event.save();
|
||||||
await createPodcast(tmpEventFolder, podcastFile, event);
|
await createPodcast(tmpEventFolder, podcastFile, event);
|
||||||
await uploadFile(podcastFile,podcastUrl);
|
await uploadFile(podcastFile,s3PodcastFile);
|
||||||
await savePodcast(event,podcastUrl);
|
await savePodcast(event,podcastUrl);
|
||||||
console.log("uploaded to: " + podcastUrl);
|
console.log("uploaded to: " + podcastUrl);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user