fix(uploader): test log
This commit is contained in:
@@ -38,6 +38,8 @@ export class EmailService {
|
|||||||
|
|
||||||
//########################################################
|
//########################################################
|
||||||
async sendEmail(wildduckUserId: string, userId: string, sendEmailDto: SendEmailDto) {
|
async sendEmail(wildduckUserId: string, userId: string, sendEmailDto: SendEmailDto) {
|
||||||
|
this.logger.log(`-----------------------------------sendEmail-----------------------------------------------------`);
|
||||||
|
|
||||||
const user = await this.userRepository.findOne({ wildduckUserId, deletedAt: null }, { populate: ["business"] });
|
const user = await this.userRepository.findOne({ wildduckUserId, deletedAt: null }, { populate: ["business"] });
|
||||||
if (!user) throw new BadRequestException(EmailMessage.USER_NOT_FOUND);
|
if (!user) throw new BadRequestException(EmailMessage.USER_NOT_FOUND);
|
||||||
this.logger.log(`Processing email through business template for business: ${user.business.id}`);
|
this.logger.log(`Processing email through business template for business: ${user.business.id}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user