typing and comparison
This commit is contained in:
parent
dad54c97ed
commit
d7b92aedc1
6 changed files with 14 additions and 11 deletions
|
@ -62,7 +62,7 @@ export async function getNewsletterDatesById(req: Request, res: Response): Promi
|
|||
}
|
||||
|
||||
/**
|
||||
* @description get newsletter recipientss by id
|
||||
* @description get newsletter recipients by id
|
||||
* @param req {Request} Express req object
|
||||
* @param res {Response} Express res object
|
||||
* @returns {Promise<*>}
|
||||
|
@ -70,9 +70,9 @@ export async function getNewsletterDatesById(req: Request, res: Response): Promi
|
|||
export async function getNewsletterRecipientsById(req: Request, res: Response): Promise<any> {
|
||||
let newsletterId = parseInt(req.params.newsletterId);
|
||||
|
||||
let recipientss = await NewsletterRecipientsService.getAll(newsletterId);
|
||||
let recipients = await NewsletterRecipientsService.getAll(newsletterId);
|
||||
|
||||
res.json(NewsletterRecipientsFactory.mapToBase(recipientss));
|
||||
res.json(NewsletterRecipientsFactory.mapToBase(recipients));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue