diff --git a/src/shows/shows.service.ts b/src/shows/shows.service.ts index 7b38930..0c28442 100644 --- a/src/shows/shows.service.ts +++ b/src/shows/shows.service.ts @@ -21,7 +21,7 @@ export class ShowsService { return this.showModel.findById(id); } - async find(name: string) { + async search(name: string) { const regex = new RegExp(name, 'i'); return this.showModel.find({ title: { $regex: regex } }); }