Skip to content

Commit

Permalink
FIX: Correct type of due_date in task
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Mar 17, 2021
1 parent e025d96 commit df69749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/models/task-comment/extension-comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class ExtensionComment extends TaskComment {
weeksRequested: number;

taskStatus: string;
taskDueDate: any;
taskDueDate: string;
taskExtensions: number;

// Do we need this do you think?
Expand All @@ -35,7 +35,7 @@ export class ExtensionComment extends TaskComment {
this.weeksRequested = data.weeks_requested;

this.taskStatus = data.task_status;
this.taskDueDate = new Date(data.due_date);
this.taskDueDate = data.due_date;
this.taskExtensions = data.extensions;
}

Expand Down

0 comments on commit df69749

Please sign in to comment.