Skip to content

Commit

Permalink
Fix the bug in Webinar
Browse files Browse the repository at this point in the history
  • Loading branch information
senuravihanjayadeva committed Dec 24, 2021
1 parent ba305ce commit b8d0fd4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/api/interfaces/IWebinar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface IWebinar extends Document {
description: string;
imageUrl: string;
dateTime: Date;
time: Date;
tags?: string[];
link?: string;
registrationLink?: string;
Expand Down
1 change: 0 additions & 1 deletion src/api/models/Webinar.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const WebinarSchema = new Schema<IWebinar>(
description: { type: String, required: true },
imageUrl: { type: String, required: true },
dateTime: { type: Date, required: true },
time: { type: Date, required: true },
tags: [{ type: String, required: false }],
link: { type: String, required: true },
registrationLink: { type: String, required: false },
Expand Down
4 changes: 0 additions & 4 deletions src/api/services/Webinar.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ export const updateWebinar = async (
webinarDetails.dateTime = webinarData.dateTime;
}

if (webinarData.time) {
webinarDetails.time = webinarData.time;
}

if (webinarData.tags) {
webinarDetails.tags = webinarData.tags;
}
Expand Down

0 comments on commit b8d0fd4

Please sign in to comment.