We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edca1e3 commit 770ae3cCopy full SHA for 770ae3c
adminforth/dataConnectors/postgres.ts
@@ -232,7 +232,7 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
232
}
233
return JSON.stringify(value);
234
} else if (field.type == AdminForthDataTypes.BOOLEAN) {
235
- return value === null ? null : (value ? 1 : 0);
+ return value === null ? null : (value ? true : false);
236
} else if (field.type == AdminForthDataTypes.JSON) {
237
if (field._underlineType == 'json') {
238
return typeof value === 'string' || value === null ? value : JSON.stringify(value);
0 commit comments