Skip to content

Commit

Permalink
refactor(notifications): moved mail service into ports folder
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentJouanne committed Oct 24, 2021
1 parent 119c5c9 commit 34eace9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable, InternalServerErrorException } from '@nestjs/common';
import { VerificationCodeEmailPayload } from '@notifications/domain/value-objects/verificationCodeEmailPayload';
import { MailService } from '@notifications/infrastructure/ports/mail.service';
import { TaskEither, tryCatch } from 'fp-ts/lib/TaskEither';
import { MailService } from '../../../../domain/services/mail.service';

@Injectable()
export class InMemoryMailService implements MailService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VerificationCodeEmailPayload } from '@notifications/domain/value-objects/verificationCodeEmailPayload';
import { TaskEither } from 'fp-ts/lib/TaskEither';
import { VerificationCodeEmailPayload } from '../value-objects/verificationCodeEmailPayload';

export interface MailService {
sendEmail: (payload: VerificationCodeEmailPayload) => TaskEither<Error, void>;
Expand Down

0 comments on commit 34eace9

Please sign in to comment.