feat: filtrar profesionales por ciudad con query param ?city=
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f94c2f96b0
commit
8a1f9687cd
@@ -17,7 +17,8 @@ export class ProfessionalsController {
|
||||
findAllActive(@Req() req) {
|
||||
const page = +(req.query.page || 1);
|
||||
const limit = +(req.query.limit || 20);
|
||||
return this.pros.findAllActive(page, limit);
|
||||
const city = req.query.city as string | undefined;
|
||||
return this.pros.findAllActive(page, limit, city);
|
||||
}
|
||||
|
||||
@Get('pending')
|
||||
|
||||
Reference in New Issue
Block a user