sending the presigned url in getAMDetailById

This commit is contained in:
2025-11-29 16:24:15 +05:30
parent 5ad17869be
commit b1a70acfa8
3 changed files with 29 additions and 4 deletions

View File

@@ -335,14 +335,14 @@ export const handler = safeHandler(async (event: APIGatewayProxyEvent): Promise<
details.hostDetails.accountManager.emailAddress,
details.hostDetails.accountManager.firstName,
details.hostDetails.companyName,
details.hostDetails.hostRefNumber,
details.hostDetails.user.userRefNumber,
);
} else {
await sendEmailToMinglarAdmin(
config.MinglarAdminEmail,
config.MinglarAdminName,
details.hostDetails.companyName,
details.hostDetails.hostRefNumber,
details.hostDetails.user.userRefNumber,
);
}
}
@@ -359,7 +359,6 @@ export const handler = safeHandler(async (event: APIGatewayProxyEvent): Promise<
message: isDraft ? 'Company details saved as draft successfully.' : 'Company details uploaded successfully.',
data: {
id: createdOrUpdated.id,
hostRefNumber: createdOrUpdated.hostRefNumber,
isDraft,
},
}),

View File

@@ -720,6 +720,7 @@ export class HostService {
id: true,
emailAddress: true,
firstName: true,
userRefNumber: true
},
},
accountManager: {