Skip to content

Commit

Permalink
Merge pull request #18 from thiagodrodrigues/thiago
Browse files Browse the repository at this point in the history
API Correção de bugs Delete Exams e Delete Appointment
  • Loading branch information
thiagodrodrigues authored Nov 17, 2022
2 parents 39e489a + 8316ad6 commit 6c34e19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/repositories/appointments.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AppointmentRepository implements IAppointmentsRepository {
}

async deleteById(resourceId: number): Promise<void> {
await this._database.delete(this._modelAppointment, { idUser: resourceId });
await this._database.delete(this._modelAppointment, { idAppointment: resourceId });
}

async list(): Promise<AppointmentEntity[]> {
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/repositories/exams.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class ExamsRepository implements IExamsRepository {
}

async deleteById(resourceId: number): Promise<void> {
await this._database.delete(this._modelExam, { idUser: resourceId });
await this._database.delete(this._modelExam, { idExams: resourceId });
}

async list(): Promise<ExamEntity[]> {
Expand Down

0 comments on commit 6c34e19

Please sign in to comment.