Made a get all details of activity with venue for the big form details of activity
This commit is contained in:
@@ -5,6 +5,7 @@ import { safeHandler } from '../../../../../common/utils/handlers/safeHandler';
|
||||
import ApiError from '../../../../../common/utils/helper/ApiError';
|
||||
import { MinglarService } from '../../../services/minglar.service';
|
||||
import { sendAMRejectionMailtoHost } from '../../../services/rejectionMailtoHost.service';
|
||||
import config from '../../../../../config/config';
|
||||
|
||||
const minglarService = new MinglarService(prismaClient);
|
||||
|
||||
@@ -47,7 +48,7 @@ export const handler = safeHandler(async (
|
||||
// Add suggestion using service
|
||||
await minglarService.rejectHostApplicationAM(hostXid, userInfo.id);
|
||||
const hostDetails = await minglarService.getUserDetails(hostXid)
|
||||
await sendAMRejectionMailtoHost(hostDetails.emailAddress, hostDetails.firstName)
|
||||
await sendAMRejectionMailtoHost(hostDetails.emailAddress, hostDetails.firstName, config.HOST_LINK)
|
||||
|
||||
return {
|
||||
statusCode: 200,
|
||||
|
||||
@@ -39,7 +39,8 @@ export async function sendEmailToHostForRejectedApplication(
|
||||
|
||||
export async function sendAMRejectionMailtoHost(
|
||||
emailAddress: string,
|
||||
name: string
|
||||
name: string,
|
||||
link: string
|
||||
): Promise<{
|
||||
sent: boolean;
|
||||
// messageId: string
|
||||
@@ -53,8 +54,8 @@ export async function sendAMRejectionMailtoHost(
|
||||
Please make the necessary improvements and re-submit your application to proceed with the onboarding process on Minglar.</p>
|
||||
<p> You may access your application using the link below:<br/>
|
||||
<strong>Link:</strong>
|
||||
<a href="${config.HOST_LINK}" target="_blank">
|
||||
${config.HOST_LINK}
|
||||
<a href="${link}" target="_blank">
|
||||
${link}
|
||||
</a>
|
||||
</p>
|
||||
<p> If you have any questions, please feel free to contact the Minglar Support Team. </p>
|
||||
|
||||
Reference in New Issue
Block a user