fix(route/fanbox) Update PostListResponse model to conform to new API response (#22828)

Co-authored-by: Sryvkver <git@sryvkver.com>
This commit is contained in:
Sryvkver 2026-07-25 15:47:57 +02:00 committed by GitHub
parent 2221f62bdb
commit c0825f01dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -81,7 +81,7 @@ async function handler(ctx: Context): Promise<Data> {
let items: DataItem[];
try {
items = await Promise.all(postListResponse.body.map((i) => parseItem(page, i)));
items = await Promise.all(postListResponse.body.posts.map((i) => parseItem(page, i)));
} finally {
await page.close();
await context.close();

View File

@ -25,7 +25,9 @@ export interface UserInfoResponse {
}
export interface PostListResponse {
body: PostItem[];
body: {
posts: PostItem[];
};
}
export interface PostDetailResponse {