mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 09:48:10 -05:00
podcast url
This commit is contained in:
@@ -282,6 +282,7 @@ const packageEvent = (eventId) => {
|
|||||||
const downloadUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3ZipFile;
|
const downloadUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3ZipFile;
|
||||||
const podcastUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3PodcastFile;
|
const podcastUrl = 'https://' + s3_endpoint + "/" + s3_bucket + "/" + s3PodcastFile;
|
||||||
event.downloadUrl = downloadUrl;
|
event.downloadUrl = downloadUrl;
|
||||||
|
event.podcastUrl = podcastUrl;
|
||||||
await event.save();
|
await event.save();
|
||||||
await createPodcast(tmpEventFolder, podcastFile, event);
|
await createPodcast(tmpEventFolder, podcastFile, event);
|
||||||
await uploadFile(podcastFile,s3PodcastFile);
|
await uploadFile(podcastFile,s3PodcastFile);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ var eventSchema = mongoose.Schema({
|
|||||||
startTime: Date,
|
startTime: Date,
|
||||||
endTime: Date,
|
endTime: Date,
|
||||||
downloadUrl: String,
|
downloadUrl: String,
|
||||||
|
podcastUrl: String,
|
||||||
shortNames: [String],
|
shortNames: [String],
|
||||||
calls: [frozenCallSchema],
|
calls: [frozenCallSchema],
|
||||||
numCalls: Number
|
numCalls: Number
|
||||||
|
|||||||
Reference in New Issue
Block a user