From 62aa54e6c96bb46e5d47330e19e8aafaac157814 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Tue, 28 May 2024 23:35:09 +0930 Subject: [PATCH] fix(route): fix gov/immiau/news (#15746) --- lib/routes/gov/immiau/news.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/gov/immiau/news.ts b/lib/routes/gov/immiau/news.ts index f0975618c..efa70ea55 100644 --- a/lib/routes/gov/immiau/news.ts +++ b/lib/routes/gov/immiau/news.ts @@ -38,11 +38,11 @@ export const route: Route = { }; async function handler() { - const res = await got({ + const { data: res } = await got({ method: 'post', url, json: reqBodyByYear(new Date().getFullYear()), - }).json(); + }); const list = res.d.data.map((item) => ({ title: item.Title,