Skip to content

Commit

Permalink
Update book.controller.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
royib authored Jan 19, 2022
1 parent a6cb342 commit 1ea7d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/book.controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Controller, Get, Param, Post, Body, Put } from '@nestjs/common';
import { CreateBookDto, UpdateBookDto, CreateBookResponse } from '../core/dtos';
import { CreateBookDto, UpdateBookDto, CreateBookResponseDto } from '../core/dtos';
import { BookServices, BookFactoryService } from '../services/use-cases/book';

@Controller('api/book')
Expand All @@ -21,7 +21,7 @@ export class BookController {

@Post()
async createBook(@Body() bookDto: CreateBookDto) {
const createBookResponse = new CreateBookResponse();
const createBookResponse = new CreateBookResponseDto();
try {
const book = this.bookFactoryService.createNewBook(bookDto);
const createdBook = await this.bookServices.createBook(book);
Expand Down

0 comments on commit 1ea7d49

Please sign in to comment.