fix(uploader): add log find timeout problem

This commit is contained in:
saharbolboliankhah
2025-11-01 15:34:36 +03:30
parent 07b058d846
commit b44ce1828c
2 changed files with 6 additions and 0 deletions
@@ -51,6 +51,7 @@ export class EmailService {
let processedTemplate = null;
this.logger.log(`-----------------------------------processEmailContent---------------------------------------------`);
if (!sendEmailDto.replyTo && !sendEmailDto.isDraft && !sendEmailDto.isForward) {
processedTemplate = await this.templateProcessorService.processEmailContent(user.business.id, userId, {
text: sendEmailDto.text,
@@ -67,6 +68,7 @@ export class EmailService {
}
}
this.logger.log(`-----------------------------------generateHeadersForEmailType---------------------------------------------`);
const headers = this.generateHeadersForEmailType(user, {
html: sendEmailDto.html,
text: sendEmailDto.text,
@@ -74,10 +76,13 @@ export class EmailService {
sendEmailDto.headers = [...headers];
this.logger.log(`-----------------------------------firstValueFrom---------------------------------------------`);
const response = await firstValueFrom(this.mailServerService.submission.submitMessage(wildduckUserId, sendEmailDto));
this.logger.log(`-----------------------------------getSentMailboxId---------------------------------------------`);
const sentMailboxId = await this.mailboxResolverService.getSentMailboxId(wildduckUserId);
this.logger.log(`-----------------------------------notifyEmailSent---------------------------------------------`);
await this.emailNotificationService.notifyEmailSent({
wildduckUserId,
userId,