mirror of
https://github.com/seerr-team/seerr.git
synced 2025-12-23 23:58:07 -05:00
This PR fixes the "Delete from *arr" button in the request list. It checks from the API whether the *arr server corresponding to the request still exists before displaying the remove button, and fixes a cache removal issue that could cause problems when deleting recently added media. This PR also reverts #1476, which introduced problems during removal. fix #1494
26 lines
684 B
TypeScript
26 lines
684 B
TypeScript
import type { MediaType } from '@server/constants/media';
|
|
import type { MediaRequest } from '@server/entity/MediaRequest';
|
|
import type { NonFunctionProperties, PaginatedResponse } from './common';
|
|
|
|
export interface RequestResultsResponse extends PaginatedResponse {
|
|
results: (NonFunctionProperties<MediaRequest> & {
|
|
profileName?: string;
|
|
canRemove?: boolean;
|
|
})[];
|
|
}
|
|
|
|
export type MediaRequestBody = {
|
|
mediaType: MediaType;
|
|
mediaId: number;
|
|
tvdbId?: number;
|
|
seasons?: number[] | 'all';
|
|
is4k?: boolean;
|
|
serverId?: number;
|
|
profileId?: number;
|
|
profileName?: string;
|
|
rootFolder?: string;
|
|
languageProfileId?: number;
|
|
userId?: number;
|
|
tags?: number[];
|
|
};
|