Skip to content

Commit

Permalink
#3981 - Model SDPR API - Query fix (#4038)
Browse files Browse the repository at this point in the history
- Querying the id is necessary for TypeOrm to bring multiple numbers for
the `applications` array. Otherwise, it brings only one application in
the array in the `student` object.


![image](https://github.com/user-attachments/assets/487a0e1e-97ab-4e4e-b974-f2d92898fc09)
  • Loading branch information
andrepestana-aot authored Dec 6, 2024
1 parent b0ac3f5 commit 37f57e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ export class StudentService extends RecordDataModelService<Student> {
user: { id: true, firstName: true, lastName: true, email: true },
birthDate: true,
contactInfo: true as unknown,
applications: { applicationNumber: true },
applications: { id: true, applicationNumber: true },
},
relations: {
sinValidation: true,
Expand Down

0 comments on commit 37f57e7

Please sign in to comment.