web: update for new cached actions
This commit is contained in:
@ -40,8 +40,8 @@ export class Flow {
|
||||
}
|
||||
|
||||
static cached(): Promise<number> {
|
||||
return DefaultClient.fetch<AKResponse<Flow>>(["flows", "cached"]).then(r => {
|
||||
return r.pagination.count;
|
||||
return DefaultClient.fetch<{ count: number }>(["flows", "all", "cached"]).then(r => {
|
||||
return r.count;
|
||||
});
|
||||
}
|
||||
static adminUrl(rest: string): string {
|
||||
|
@ -20,8 +20,8 @@ export class Policy implements BaseInheritanceModel {
|
||||
}
|
||||
|
||||
static cached(): Promise<number> {
|
||||
return DefaultClient.fetch<AKResponse<Policy>>(["policies", "cached"]).then(r => {
|
||||
return r.pagination.count;
|
||||
return DefaultClient.fetch<{ count: number }>(["policies", "all", "cached"]).then(r => {
|
||||
return r.count;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user