Skip to content

Commit a9c1355

Browse files
committed
fix: save decimal as string in mongo
1 parent 3e6e135 commit a9c1355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adminforth/dataConnectors/mongo.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
108108
}
109109
} else if (field.type == AdminForthDataTypes.BOOLEAN) {
110110
return value ? true : false;
111+
} else if (field.type == AdminForthDataTypes.DECIMAL) {
112+
return value?.toString();
111113
}
112114
return value;
113115
}

0 commit comments

Comments
 (0)