diff --git a/src/genres/genres.controller.ts b/src/genres/genres.controller.ts index 3df4f22..08ce445 100644 --- a/src/genres/genres.controller.ts +++ b/src/genres/genres.controller.ts @@ -79,8 +79,8 @@ export class GenresController { @Delete('/id/:id') async remove(@Param('id') id: string) { try { - const deletedMovie = await this.genresService.remove(id); - if (!deletedMovie) { + const deletedGenre = await this.genresService.remove(id); + if (!deletedGenre) { throw new NotFoundException({ status: 'Error', message: `Can't find genre with id ${id}`, diff --git a/src/shows/shows.controller.ts b/src/shows/shows.controller.ts index 84d606e..06f04cb 100644 --- a/src/shows/shows.controller.ts +++ b/src/shows/shows.controller.ts @@ -130,7 +130,7 @@ export class ShowsController { } else { return { status: 'Ok', - message: 'Movie was updated successfully', + message: 'Show was updated successfully', }; } } catch (error) { @@ -148,8 +148,8 @@ export class ShowsController { @Delete('id/:id') async remove(@Param('id') id: string) { try { - const deletedMovie = await this.showsService.remove(id); - if (!deletedMovie) { + const deletedShow = await this.showsService.remove(id); + if (!deletedShow) { throw new NotFoundException({ status: 'Error', message: `Can't find show with id ${id}`, @@ -157,7 +157,7 @@ export class ShowsController { } else { return { status: 'Ok', - message: 'Movie removed successfully', + message: 'Show removed successfully', }; } } catch (error) {