fix(uploader): test log

This commit is contained in:
saharbolboliankhah
2025-10-28 15:26:27 +03:30
parent 1ec0d808d7
commit 8d0c96ef36
@@ -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}`);