web: PBResponse -> AKResponse

This commit is contained in:
Jens Langhammer
2021-02-09 17:04:55 +01:00
parent 45f1d95bf9
commit f8bcdb26b3
29 changed files with 78 additions and 74 deletions

View File

@ -1,4 +1,4 @@
import { DefaultClient, PBResponse } from "./Client";
import { DefaultClient, AKResponse } from "./Client";
let _globalMePromise: Promise<User>;
@ -22,7 +22,7 @@ export class User {
}
static count(): Promise<number> {
return DefaultClient.fetch<PBResponse<User>>(["core", "users"], {
return DefaultClient.fetch<AKResponse<User>>(["core", "users"], {
"page_size": 1
}).then(r => {
return r.pagination.count;