bug fixes

This commit is contained in:
undefined committed 2025-07-20 19:12:17 +08:00
1 parent d4271b3fbd
commit 1232e8f3a1
5 files changed
+30 -33

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ export const Types = {
Float: [(v) => +v, (v) => Number.isFinite(+v)],
ObjectId: [() => { throw new Error('mongodb package not found'); }, () => true],
Boolean: [(v) => !!(v && !['false', 'off'].includes(v)), null, true],
Boolean: [(v) => !!(v && !['false', 'off', 'no', '0'].includes(v)), null, true],
Date: [
(v) => {
const d = v.split('-');