Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shelleychen318 committed Nov 23, 2023
1 parent 8047a0c commit 7ae79ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions backend/typescript/graphql/types/taskType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const taskType = gql`
startDate: String!
endDate: String
comments: String!
recurrenceFrequency: RecurrenceFrequency!
recurrenceFrequency: Status!
}
type TaskDTO {
Expand All @@ -43,7 +43,7 @@ const taskType = gql`
startDate: String!
endDate: String
comments: String!
recurrenceFrequency: RecurrenceFrequency!
recurrenceFrequency: Status!
}
extend type Query {
Expand Down
2 changes: 1 addition & 1 deletion backend/typescript/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ model task {
startDate DateTime @map("start_date")
endDate DateTime? @map("end_date")
comments String
recurrenceFrequency RecurrenceFrequency
recurrenceFrequency Statuses @map("recurrence_frequency")
warnings warning[]
}

Expand Down
4 changes: 2 additions & 2 deletions backend/typescript/services/implementations/taskService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class TaskService implements ITaskService {
startDate: task.startDate,
endDate: task.endDate,
comments: task.comments,
recurrenceFrequency: task.recurrenceFrequency,
recurrenceFrequency: task.status,
category: {
connect: {
id: task.categoryId,
Expand Down Expand Up @@ -204,7 +204,7 @@ class TaskService implements ITaskService {
startDate: task.startDate,
endDate: task.endDate,
comments: task.comments,
recurrenceFrequency: task.recurrenceFrequency,
recurrenceFrequency: task.status,
category: {
connect: {
id: task.categoryId,
Expand Down
4 changes: 2 additions & 2 deletions backend/typescript/services/interfaces/taskService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface InputTaskDTO {
startDate: Date;
endDate?: Date | null;
comments: string;
recurrenceFrequency: RecurrenceFrequency;
recurrenceFrequency: Status;
}

export interface TaskDTO {
Expand All @@ -28,7 +28,7 @@ export interface TaskDTO {
startDate: Date;
endDate?: Date | null;
comments: string;
recurrenceFrequency: RecurrenceFrequency;
recurrenceFrequency: Status;
}

export interface ITaskService {
Expand Down

0 comments on commit 7ae79ef

Please sign in to comment.