diff --git a/src/shows/shows.service.ts b/src/shows/shows.service.ts index dc92c32..5becbcd 100644 --- a/src/shows/shows.service.ts +++ b/src/shows/shows.service.ts @@ -34,7 +34,10 @@ export class ShowsService { async search(name: string) { const regex = new RegExp(name, 'i'); - return this.showModel.find({ title: { $regex: regex } }); + const filter = { + $or: [{ title: { $regex: regex } }, { description: { $regex: regex } }], + }; + return this.showModel.find(filter); } async update(id: string, dto: ShowDto): Promise {