Skip to content

Commit

Permalink
Merge pull request #242 from navgurukul/chore/batch
Browse files Browse the repository at this point in the history
Added  email id of instructor in get batch api
  • Loading branch information
giribabu22 authored Aug 22, 2024
2 parents 0adb97e + d272cef commit e0fa935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller/batches/batch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export class BatchesService {
.where(eq(users.id, BigInt(data[0].instructorId)));
const instructorName =
batchInstructor.length > 0 ? batchInstructor[0].name : null;
const instructorEmail = batchInstructor.length > 0 ? batchInstructor[0].email : null;
data[0]['instructorName'] = instructorName;
data[0]['instructorEmail'] = instructorEmail;
// data[0]['students'] = respObj;
return [
null,
Expand Down

0 comments on commit e0fa935

Please sign in to comment.