This commit is contained in:
syuilo 2019-07-05 22:32:15 +09:00
parent af583d2ef6
commit 65bf863093
1 changed files with 3 additions and 1 deletions

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);
}
}
};