1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 13:48:28 +09:00
This commit is contained in:
syuilo 2019-07-05 22:32:15 +09:00
parent af583d2ef6
commit 65bf863093

View File

@ -446,7 +446,9 @@ export default abstract class Chart<T extends Record<string, any>> {
if (typeof v == 'object') {
dive(v, p);
} else {
nestedProperty.set(res, p, chart.map(s => nestedProperty.get(s, p)));
const values = chart.map(s => nestedProperty.get(s, p))
.map(v => parseInt(v, 10)); // TypeORMのバグ()で何故か数値カラムの値が文字列型になっているので数値に戻す
nestedProperty.set(res, p, values);
}
}
};