fix(uploader): add log find timeout problem
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -117,6 +117,7 @@ export class WildDuckBaseService {
|
||||
|
||||
protected post<T>(path: string, data?: any, params?: Record<string, any>): Observable<T> {
|
||||
const url = this.buildUrl(path, params);
|
||||
this.logger.log(`----------------url---------------------`, url);
|
||||
return this.handleResponse<T>(this.httpService.post(url, data));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user