Merge pull request #5313 from jsangmeister/fix-user-import
Fixed user import
This commit is contained in:
commit
1570b5b806
@ -5,7 +5,11 @@ export abstract class BaseDecimalModel<T = any> extends BaseModel<T> {
|
|||||||
|
|
||||||
public deserialize(input: any): void {
|
public deserialize(input: any): void {
|
||||||
if (input && typeof input === 'object') {
|
if (input && typeof input === 'object') {
|
||||||
this.getDecimalFields().forEach(field => (input[field] = parseInt(input[field], 10)));
|
this.getDecimalFields().forEach(field => {
|
||||||
|
if (input[field] !== undefined) {
|
||||||
|
input[field] = parseInt(input[field], 10);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
super.deserialize(input);
|
super.deserialize(input);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user