Updates
This commit is contained in:
@@ -2,6 +2,7 @@ import sanitizeHtml from "sanitize-html";
|
||||
import sanitizeHtmlOptions from "../html/sanitizeHtmlOptions";
|
||||
import encrypt from "../../dsql/encrypt";
|
||||
import { DSQL_TableSchemaType } from "../../../types";
|
||||
import numberfy from "../../../utils/numberfy";
|
||||
import _ from "lodash";
|
||||
|
||||
type Param = {
|
||||
@@ -57,6 +58,13 @@ export default function grabParsedValue({
|
||||
newValue = "";
|
||||
}
|
||||
|
||||
if (
|
||||
targetFieldSchema?.dataType?.match(/int$|decimal|float|double/i) &&
|
||||
typeof value == "string"
|
||||
) {
|
||||
newValue = numberfy(value);
|
||||
}
|
||||
|
||||
if (targetFieldSchema?.encrypted) {
|
||||
newValue =
|
||||
encrypt({
|
||||
|
||||
Reference in New Issue
Block a user