mirror of
https://github.com/ershisan99/podcaster.git
synced 2025-12-18 12:33:48 +00:00
chore: add description to episode dto
This commit is contained in:
@@ -6,6 +6,7 @@ export class EpisodeDto {
|
|||||||
audioUrl: string;
|
audioUrl: string;
|
||||||
title: string;
|
title: string;
|
||||||
durationSeconds: number;
|
durationSeconds: number;
|
||||||
|
description: string;
|
||||||
|
|
||||||
constructor(episode: Episode) {
|
constructor(episode: Episode) {
|
||||||
this.id = episode.trackId;
|
this.id = episode.trackId;
|
||||||
@@ -13,5 +14,6 @@ export class EpisodeDto {
|
|||||||
this.releaseDate = episode.releaseDate;
|
this.releaseDate = episode.releaseDate;
|
||||||
this.audioUrl = episode.episodeUrl;
|
this.audioUrl = episode.episodeUrl;
|
||||||
this.durationSeconds = episode.trackTimeMillis / 1000;
|
this.durationSeconds = episode.trackTimeMillis / 1000;
|
||||||
|
this.description = episode.description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user