From e3f77139b20084716b329a95e1fc7471ba25cb33 Mon Sep 17 00:00:00 2001 From: akvlad Date: Thu, 18 Apr 2024 13:22:39 +0300 Subject: [PATCH] fix: axios error --- lib/db/clickhouse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/clickhouse.js b/lib/db/clickhouse.js index 4a14c5fc..6f3a32a0 100644 --- a/lib/db/clickhouse.js +++ b/lib/db/clickhouse.js @@ -1374,7 +1374,8 @@ const rawRequest = async (query, data, database, config) => { (data ? `query=${encodeURIComponent(query)}` : null) ].filter(p => p) const url = `${getClickhouseUrl()}/${getParams.length ? `?${getParams.join('&')}` : ''}` - const config = { + config = { + ...(config || {}), method: 'post', url: url, data: data || query