|
|
@ -759,7 +759,7 @@ exports.getAllOfficesByCity = async (req, reply) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 3) Build response for each headOffice found
|
|
|
|
// 3) Build response for each headOffice found
|
|
|
|
const finalResponse = [];
|
|
|
|
const finalResponse = [];
|
|
|
|
|
|
|
|
|
|
|
@ -828,8 +828,8 @@ exports.getAllOfficesByCity = async (req, reply) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
finalResponse.push({
|
|
|
|
finalResponse.push({
|
|
|
|
officeName: ho.officeName?.trim() || "",
|
|
|
|
// officeName: ho.officeName?.trim() || "",
|
|
|
|
city: ho.city?.trim() || "",
|
|
|
|
// city: ho.city?.trim() || "",
|
|
|
|
offices
|
|
|
|
offices
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|