feat: implement backend podcast subscription controllers and frontend library page with optimistic updates

This commit is contained in:
Michael committed 2026-04-16 13:07:46 +02:00
1 parent 38521c45dc
commit 872ef5c31a
5 files changed
+92 -25

No files matched your search

+10
View File
@@ -10,6 +10,8 @@ export interface IPodcast extends Document {
language: string;
lastFetched: Date;
episodeCount: number;
lastEpisodeTitle?: string;
lastEpisodeDate?: Date;
createdAt: Date;
updatedAt: Date;
}
@@ -55,6 +57,14 @@ const podcastSchema = new Schema<IPodcast>(
type: Number,
default: 0,
},
lastEpisodeTitle: {
type: String,
default: '',
},
lastEpisodeDate: {
type: Date,
default: null,
},
},
{
timestamps: true,