mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Migrate /superset/stop_query/ to API v1 (#22624)
This commit is contained in:
@@ -450,9 +450,9 @@ export function validateQuery(queryEditor, sql) {
|
||||
export function postStopQuery(query) {
|
||||
return function (dispatch) {
|
||||
return SupersetClient.post({
|
||||
endpoint: '/superset/stop_query/',
|
||||
postPayload: { client_id: query.id },
|
||||
stringify: false,
|
||||
endpoint: '/api/v1/query/stop',
|
||||
body: JSON.stringify({ client_id: query.id }),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
.then(() => dispatch(stopQuery(query)))
|
||||
.then(() => dispatch(addSuccessToast(t('Query was stopped.'))))
|
||||
|
||||
Reference in New Issue
Block a user