Skip to content

Commit e3f7713

Browse files
committed
fix: axios error
1 parent df8bc6f commit e3f7713

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/db/clickhouse.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,8 @@ const rawRequest = async (query, data, database, config) => {
13741374
(data ? `query=${encodeURIComponent(query)}` : null)
13751375
].filter(p => p)
13761376
const url = `${getClickhouseUrl()}/${getParams.length ? `?${getParams.join('&')}` : ''}`
1377-
const config = {
1377+
config = {
1378+
...(config || {}),
13781379
method: 'post',
13791380
url: url,
13801381
data: data || query

0 commit comments

Comments
 (0)