mirror of
https://github.com/R0m1k3/podcastic.git
synced 2026-10-24 15:38:03 +02:00
feat: implement backend podcast subscription controllers and frontend library page with optimistic updates
This commit is contained in:
1 parent
38521c45dc
commit
872ef5c31a
5 files changed
+92
-25
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user