File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -796,8 +796,8 @@ impl Client {
796
796
pub async fn cancel_tasks_with (
797
797
& self ,
798
798
filters : & TasksCancelQuery < ' _ > ,
799
- ) -> Result < TasksResults , Error > {
800
- let tasks = request :: < & TasksCancelQuery , ( ) , TasksResults > (
799
+ ) -> Result < TaskInfo , Error > {
800
+ let tasks = request :: < & TasksCancelQuery , ( ) , TaskInfo > (
801
801
& format ! ( "{}/tasks/cancel" , self . host) ,
802
802
& self . api_key ,
803
803
Method :: Post {
Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ impl<'a> TasksQuery<'a, TasksCancelFilters> {
577
577
}
578
578
}
579
579
580
- pub async fn execute ( & ' a self ) -> Result < TasksResults , Error > {
580
+ pub async fn execute ( & ' a self ) -> Result < TaskInfo , Error > {
581
581
self . client . cancel_tasks_with ( self ) . await
582
582
}
583
583
}
@@ -937,7 +937,7 @@ mod test {
937
937
let path =
938
938
"/tasks/cancel?indexUids=movies,test&statuses=equeued&types=documentDeletion&uids=1" ;
939
939
940
- let mock_res = mock ( "GET " , path) . with_status ( 200 ) . create ( ) ;
940
+ let mock_res = mock ( "POST " , path) . with_status ( 200 ) . create ( ) ;
941
941
942
942
let mut query = TasksCancelQuery :: new ( & client) ;
943
943
query
@@ -959,7 +959,7 @@ mod test {
959
959
let path =
960
960
"/tasks/cancel?indexUids=movies,test&statuses=equeued&types=documentDeletion&uids=1" ;
961
961
962
- let mock_res = mock ( "GET " , path) . with_status ( 200 ) . create ( ) ;
962
+ let mock_res = mock ( "POST " , path) . with_status ( 200 ) . create ( ) ;
963
963
964
964
let mut query = TasksCancelQuery :: new ( & client) ;
965
965
let _ = query
You can’t perform that action at this time.
0 commit comments