From e1855dfceb09388d4b79cad0be7313b8c6927b41 Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Wed, 4 Sep 2024 13:42:12 +0200 Subject: [PATCH] Update index.ts --- src/treaty2/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/treaty2/index.ts b/src/treaty2/index.ts index ddb0768..755058d 100644 --- a/src/treaty2/index.ts +++ b/src/treaty2/index.ts @@ -191,6 +191,11 @@ const createProxy = ( } for (const [key, value] of Object.entries(query)) { + if (value === null || value instanceof Date) { + append(key, value) + continue + } + if (Array.isArray(value)) { for (const v of value) append(key, v) continue