From 66778f994405687a231d884501caa0463fe21d7c Mon Sep 17 00:00:00 2001 From: Toast Date: Fri, 24 Jan 2025 10:16:06 +0100 Subject: [PATCH] Shows/service: rename find function to search --- src/shows/shows.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }); }