Skip to content

Commit ceac7dd

Browse files
committed
revert
1 parent e6585a3 commit ceac7dd

4 files changed

Lines changed: 1 addition & 24 deletions

File tree

adminforth/dataConnectors/postgres.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,7 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
213213
throw new Error(`AdminForth does not support row type: ${field._underlineType} for timestamps, use VARCHAR (with iso strings) or TIMESTAMP/INT (with unix timestamps). Issue in field: ${field.name} in table: ${field.table}`);
214214
}
215215
}
216-
217-
if (field.type === AdminForthDataTypes.DECIMAL) {
218-
if (value !== null && value !== undefined) {
219-
return new Decimal(value).toSignificantDigits().toString();
220-
}
221-
return value;
222-
}
223-
216+
224217
if (field.type == AdminForthDataTypes.DATE) {
225218
if (!value) {
226219
return null;

adminforth/package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adminforth/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
"chalk": "^5.4.1",
100100
"connection-string": "^4.4.0",
101101
"dayjs": "^1.11.11",
102-
"decimal.js": "^10.6.0",
103102
"dotenv": "^16.4.5",
104103
"esm": "^3.2.25",
105104
"execa": "^9.5.2",

adminforth/pnpm-lock.yaml

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)