*: remove swagger parameters from functions that don't accept them

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-04-02 13:27:18 +02:00
parent 7eb7fc2e12
commit 83fc22005c
27 changed files with 99 additions and 389 deletions

View File

@ -9,7 +9,7 @@ import "../../../elements/forms/ConfirmationForm";
export class FlowCacheStatusCard extends AdminStatusCard<number> {
getPrimaryValue(): Promise<number> {
return new FlowsApi(DEFAULT_CONFIG).flowsInstancesCacheInfo({}).then((value) => {
return new FlowsApi(DEFAULT_CONFIG).flowsInstancesCacheInfo().then((value) => {
return value.count || 0;
});
}

View File

@ -10,7 +10,7 @@ import "../../../elements/forms/ConfirmationForm";
export class PolicyCacheStatusCard extends AdminStatusCard<number> {
getPrimaryValue(): Promise<number> {
return new PoliciesApi(DEFAULT_CONFIG).policiesAllCacheInfo({}).then((value) => {
return new PoliciesApi(DEFAULT_CONFIG).policiesAllCacheInfo().then((value) => {
return value.count || 0;
});
}