master
Suvodip 2025-03-25 11:06:25 +05:30
parent f98b9f9036
commit 70ffe4a76a
2 changed files with 3 additions and 12 deletions

View File

@ -102,16 +102,7 @@ export async function GET(request: NextRequest) {
try {
// Try to get candidates using the service
const result = await candidateService.getCandidates({
status,
technology,
visaStatus,
openToRelocate: openToRelocate === 'true',
currentStatus,
search,
limit,
page
});
const result = await candidateService.getCandidates({status, technology, visaStatus, openToRelocate: openToRelocate === 'true', currentStatus, search, limit, page});
console.log('mongo result', result);
return NextResponse.json(result);
} catch (error) {