Use gql for "mangas" V - update manga categories
This commit is contained in:
@@ -26,7 +26,6 @@ import { OperationVariables } from '@apollo/client/core';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
BackupValidationResult,
|
||||
ICategory,
|
||||
IChapter,
|
||||
IMangaChapter,
|
||||
ISourceFilters,
|
||||
@@ -1292,13 +1291,6 @@ export class RequestManager {
|
||||
return this.getValidImgUrlFor(`manga/${mangaId}/thumbnail`);
|
||||
}
|
||||
|
||||
public useGetMangaCategories(
|
||||
mangaId: number,
|
||||
swrOptions?: SWROptions<ICategory[]>,
|
||||
): AbortableSWRResponse<ICategory[]> {
|
||||
return this.doRequest(HttpMethod.SWR_GET, `manga/${mangaId}/category`, { swrOptions });
|
||||
}
|
||||
|
||||
public useUpdateMangaCategories(
|
||||
options?: MutationHookOptions<UpdateMangaCategoriesMutation, UpdateMangaCategoriesMutationVariables>,
|
||||
): AbortableApolloUseMutationResponse<UpdateMangaCategoriesMutation, UpdateMangaCategoriesMutationVariables> {
|
||||
|
||||
Reference in New Issue
Block a user