education controller, service, command
This commit is contained in:
parent
5368a96d0f
commit
fded8a663a
29 changed files with 884 additions and 5 deletions
|
@ -17,6 +17,7 @@ export default abstract class DynamicQueryBuilder {
|
|||
"memberAwards",
|
||||
"memberExecutivePositions",
|
||||
"memberQualifications",
|
||||
"memberEducations",
|
||||
"membership",
|
||||
"memberView",
|
||||
"memberExecutivePositionsView",
|
||||
|
@ -293,7 +294,12 @@ export default abstract class DynamicQueryBuilder {
|
|||
results.forEach((res) => {
|
||||
if (typeof value === "object" && value instanceof Date) {
|
||||
res[newKey] = new Date(value).toISOString();
|
||||
} else if (typeof value === "object" && !Array.isArray(value) && !(value instanceof Buffer)) {
|
||||
} else if (
|
||||
typeof value === "object" &&
|
||||
!Array.isArray(value) &&
|
||||
!(value instanceof Buffer) &&
|
||||
value !== null
|
||||
) {
|
||||
let string = "";
|
||||
for (const key of Object.keys(value)) {
|
||||
string += `${value[key]} ${key} `;
|
||||
|
@ -302,7 +308,7 @@ export default abstract class DynamicQueryBuilder {
|
|||
|
||||
// JSON.stringify(value).replace(/["\\{}]/g, "").replaceAll(",", ", ");
|
||||
} else if (String(value) != "undefined") {
|
||||
res[newKey] = String(value);
|
||||
res[newKey] = value !== null ? String(value) : "";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue