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 21:47:57 +08:00
committed by GitHub
co-authored by Sryvkver
parent 2221f62bdb
commit c0825f01dd
2 changed files with 4 additions and 2 deletions
+1 -1
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();
+3 -1
View File
@@ -25,7 +25,9 @@ export interface UserInfoResponse {
}
export interface PostListResponse {
body: PostItem[];
body: {
posts: PostItem[];
};
}
export interface PostDetailResponse {