@@ -12,8 +12,6 @@ import {
1212 TBookmarkPodcastItemResponse ,
1313 TBookmarkPodcastItemRequest ,
1414 TGetPodcastChannelsResponse ,
15- TLikePodcastItemRequest ,
16- TLikePodcastItemResponse ,
1715} from "./types" ;
1816
1917const { PODCAST , SOURCES } = CONFIG . API . DEFAULT . ROUTES ;
@@ -89,21 +87,6 @@ export const podcastApi = alphadayApi.injectEndpoints({
8987 } ;
9088 } ,
9189 } ) ,
92- likePodcastItem : builder . mutation <
93- TLikePodcastItemResponse ,
94- TLikePodcastItemRequest
95- > ( {
96- query : ( req : TLikePodcastItemRequest ) => {
97- const path = `${ PODCAST . BASE } ${ PODCAST . LIKE ( req . id ) } ` ;
98- Logger . debug ( "likePodcastItem: querying" , path ) ;
99- return {
100- url : path ,
101- method : "POST" ,
102- body : { } ,
103- } ;
104- } ,
105- invalidatesTags : [ "Superfeed" ] ,
106- } ) ,
10790 openPodcastItem : builder . mutation <
10891 TOpenPodcastItemResponse ,
10992 TOpenPodcastItemRequest
@@ -127,5 +110,4 @@ export const {
127110 useOpenPodcastItemMutation,
128111 useBookmarkPodcastItemMutation,
129112 useGetPodcastChannelsListQuery,
130- useLikePodcastItemMutation,
131113} = podcastApi ;
0 commit comments