From a6b63918f65558d3d7539acf749ada5c06c3df68 Mon Sep 17 00:00:00 2001 From: Janith Lahiru Kariyawasam <88109775+janithlahirukariyawasam@users.noreply.github.com> Date: Mon, 27 Nov 2023 10:37:00 +0530 Subject: [PATCH] fix bug --- src/controllers/admin/email.controller.ts | 2 +- src/services/admin/email.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/admin/email.controller.ts b/src/controllers/admin/email.controller.ts index 49c8eb38..20175bcf 100644 --- a/src/controllers/admin/email.controller.ts +++ b/src/controllers/admin/email.controller.ts @@ -6,7 +6,7 @@ import { ApplicationStatus } from '../../enums' export const getAllMenteeEmails = async ( req: Request, res: Response -): Promise> => { +): Promise> => { try { const status = req.query.status if ( diff --git a/src/services/admin/email.service.ts b/src/services/admin/email.service.ts index 44870dc5..e5e2167e 100644 --- a/src/services/admin/email.service.ts +++ b/src/services/admin/email.service.ts @@ -4,7 +4,7 @@ import type { ApplicationStatus } from '../../enums' export const getAllMenteeEmailsService = async (status: ApplicationStatus | undefined): Promise<{ statusCode: number - emails?: String[] + emails?: string[] message: string }> => { const menteeRepositroy = dataSource.getRepository(Mentee) @@ -16,6 +16,6 @@ export const getAllMenteeEmailsService = async (status: ApplicationStatus | unde return { statusCode: 200, emails, - message: "All mentee emails with status " + status + message: 'All mentee emails with status '+ (status || 'undefined'), } }