Skip to content

Commit

Permalink
Update email controller to use rpc defined resp
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthecoder committed Mar 5, 2024
1 parent 54bfdb2 commit 220d030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-gateway/src/modules/email/email.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
HttpException,
HttpStatus,
} from '@nestjs/common';
import { SendEmailResponse } from 'juno-proto/dist/gen/email';
import { RegisterEmailModel, RegisterEmailResponse } from 'src/models/email';
import { SendEmailRequestResponse } from 'juno-proto/dist/gen/email';

@Controller('email')
export class EmailController implements OnModuleInit {
Expand All @@ -32,7 +32,7 @@ export class EmailController implements OnModuleInit {
@Body('destination') destination: string,
@Body('subject') subject: string,
@Body('body') body: string,
): Promise<SendEmailRequestResponse> {
): Promise<SendEmailResponse> {
if (!body || !destination || !subject) {
throw new HttpException(
'Missing Email Parameters',
Expand Down

0 comments on commit 220d030

Please sign in to comment.