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