Skip to content

Commit

Permalink
Fix invalid import syntax (#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkostrowski committed Jun 20, 2024
1 parent ab5baf4 commit 4e755e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ISMTPEmailSender, SendMailArgs } from "../../smtp/services/smtp-email-s
import { BaseError } from "../../../errors";
import { err, errAsync, Result, ResultAsync } from "neverthrow";
import { SmtpConfiguration } from "../../smtp/configuration/smtp-config-schema";
import combineWithAllErrors = Result.combineWithAllErrors;

export class SendEventMessagesUseCase {
static BaseError = BaseError.subclass("SendEventMessagesUseCaseError");
Expand Down Expand Up @@ -235,6 +234,6 @@ export class SendEventMessagesUseCase {
),
);

return combineWithAllErrors(processingResults);
return Result.combineWithAllErrors(processingResults);
}
}
3 changes: 1 addition & 2 deletions apps/smtp/src/modules/smtp/services/email-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { IHtmlToTextCompiler } from "./html-to-text-compiler";
import { createLogger } from "../../../logger";
import { BaseError } from "../../../errors";
import { err, ok, Result } from "neverthrow";
import combine = Result.combine;

interface CompileArgs {
recipientEmail: string;
Expand Down Expand Up @@ -127,7 +126,7 @@ export class EmailCompiler implements IEmailCompiler {
},
);

return combine([subjectCompilationResult, bodyCompilationInHtmlResult]).andThen(
return Result.combine([subjectCompilationResult, bodyCompilationInHtmlResult]).andThen(
([subjectCompiled, bodyCompiledHtml]) => {
return this.resolveBodyPlainText(bodyCompiledHtml).andThen((bodyPlainText) => {
logger.debug("Resolved compiled email template");
Expand Down

0 comments on commit 4e755e0

Please sign in to comment.