Skip to content

Commit

Permalink
fix: axios error
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Apr 18, 2024
1 parent df8bc6f commit e3f7713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/db/clickhouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3f7713

Please sign in to comment.