Skip to content

Commit

Permalink
fix(tutorservice): missing availability
Browse files Browse the repository at this point in the history
  • Loading branch information
Famozzy committed Nov 19, 2024
1 parent 4d2b3d2 commit 739e76a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/services/tutorService.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type GetTutorServicesFilters = {
minHourlyRate?: number | null;
maxHourlyRate?: number | null;
typeLesson?: string | null;
tutorId?: string | null;
};

export class TutorServiceService {
Expand Down Expand Up @@ -198,8 +199,14 @@ export class TutorServiceService {
tutorId: string,
data: z.infer<typeof createTutorServiceSchema>["body"],
) {
const { subjectId, aboutYou, teachingMethodology, hourlyRate, typeLesson } =
data;
const {
subjectId,
aboutYou,
teachingMethodology,
hourlyRate,
typeLesson,
availability,
} = data;

try {
const batch = this.firestore.batch();
Expand All @@ -215,6 +222,7 @@ export class TutorServiceService {
teachingMethodology,
hourlyRate,
typeLesson,
availability,
createdAt: new Date(),
});

Expand Down

0 comments on commit 739e76a

Please sign in to comment.