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