Skip to content

Commit f590835

Browse files
committed
treat booleans like true/false in mongo instead of 0/1
1 parent 96149b9 commit f590835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/dataConnectors/mongo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
107107
return dayjs(value).toISOString();
108108
}
109109
} else if (field.type == AdminForthDataTypes.BOOLEAN) {
110-
return value ? 1 : 0;
110+
return value ? true : false;
111111
}
112112
return value;
113113
}

0 commit comments

Comments
 (0)