fix(uploader): add log find timeout problem
This commit is contained in:
@@ -51,6 +51,7 @@ export class EmailService {
|
|||||||
|
|
||||||
let processedTemplate = null;
|
let processedTemplate = null;
|
||||||
|
|
||||||
|
this.logger.log(`-----------------------------------processEmailContent---------------------------------------------`);
|
||||||
if (!sendEmailDto.replyTo && !sendEmailDto.isDraft && !sendEmailDto.isForward) {
|
if (!sendEmailDto.replyTo && !sendEmailDto.isDraft && !sendEmailDto.isForward) {
|
||||||
processedTemplate = await this.templateProcessorService.processEmailContent(user.business.id, userId, {
|
processedTemplate = await this.templateProcessorService.processEmailContent(user.business.id, userId, {
|
||||||
text: sendEmailDto.text,
|
text: sendEmailDto.text,
|
||||||
@@ -67,6 +68,7 @@ export class EmailService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.logger.log(`-----------------------------------generateHeadersForEmailType---------------------------------------------`);
|
||||||
const headers = this.generateHeadersForEmailType(user, {
|
const headers = this.generateHeadersForEmailType(user, {
|
||||||
html: sendEmailDto.html,
|
html: sendEmailDto.html,
|
||||||
text: sendEmailDto.text,
|
text: sendEmailDto.text,
|
||||||
@@ -74,10 +76,13 @@ export class EmailService {
|
|||||||
|
|
||||||
sendEmailDto.headers = [...headers];
|
sendEmailDto.headers = [...headers];
|
||||||
|
|
||||||
|
this.logger.log(`-----------------------------------firstValueFrom---------------------------------------------`);
|
||||||
const response = await firstValueFrom(this.mailServerService.submission.submitMessage(wildduckUserId, sendEmailDto));
|
const response = await firstValueFrom(this.mailServerService.submission.submitMessage(wildduckUserId, sendEmailDto));
|
||||||
|
|
||||||
|
this.logger.log(`-----------------------------------getSentMailboxId---------------------------------------------`);
|
||||||
const sentMailboxId = await this.mailboxResolverService.getSentMailboxId(wildduckUserId);
|
const sentMailboxId = await this.mailboxResolverService.getSentMailboxId(wildduckUserId);
|
||||||
|
|
||||||
|
this.logger.log(`-----------------------------------notifyEmailSent---------------------------------------------`);
|
||||||
await this.emailNotificationService.notifyEmailSent({
|
await this.emailNotificationService.notifyEmailSent({
|
||||||
wildduckUserId,
|
wildduckUserId,
|
||||||
userId,
|
userId,
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ export class WildDuckBaseService {
|
|||||||
|
|
||||||
protected post<T>(path: string, data?: any, params?: Record<string, any>): Observable<T> {
|
protected post<T>(path: string, data?: any, params?: Record<string, any>): Observable<T> {
|
||||||
const url = this.buildUrl(path, params);
|
const url = this.buildUrl(path, params);
|
||||||
|
this.logger.log(`----------------url---------------------`, url);
|
||||||
return this.handleResponse<T>(this.httpService.post(url, data));
|
return this.handleResponse<T>(this.httpService.post(url, data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user