Shows/service: rename find function to search

This commit is contained in:
Toast 2025-01-24 10:16:06 +01:00
parent 00d57b4feb
commit 66778f9944

View file

@ -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 } });
}