mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 09:49:13 +00:00
fix(filters): store and update with no external filters (#1049)
* fix(filters): store and update * fix(filters): bad fmt var * fix(filters): store expect status * fix(filters): store expect status * fix(filters): external filter always rejected
This commit is contained in:
parent
0fa53b0b2e
commit
3e244fac10
14 changed files with 151 additions and 125 deletions
10
web/src/types/Filter.d.ts
vendored
10
web/src/types/Filter.d.ts
vendored
|
@ -71,14 +71,6 @@ interface Filter {
|
|||
actions: Action[];
|
||||
indexers: Indexer[];
|
||||
external: ExternalFilter[];
|
||||
external_script_enabled: boolean;
|
||||
external_script_cmd: string;
|
||||
external_script_args: string;
|
||||
external_script_expect_status: number;
|
||||
external_webhook_enabled: boolean;
|
||||
external_webhook_host: string;
|
||||
external_webhook_data: string;
|
||||
external_webhook_expect_status: number;
|
||||
}
|
||||
|
||||
interface Action {
|
||||
|
@ -130,10 +122,12 @@ interface ExternalFilter {
|
|||
enabled: boolean;
|
||||
exec_cmd?: string;
|
||||
exec_args?: string;
|
||||
exec_expect_status?: number;
|
||||
webhook_host?: string,
|
||||
webhook_type?: string;
|
||||
webhook_method?: WebhookMethod;
|
||||
webhook_data?: string,
|
||||
webhook_headers?: string;
|
||||
webhook_expect_status?: number;
|
||||
filter_id?: number;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue