diff --git a/scripts/refresh.ts b/scripts/refresh.ts index 58b282c..54b9504 100644 --- a/scripts/refresh.ts +++ b/scripts/refresh.ts @@ -1,10 +1,5 @@ -import process from "node:process" import { sources } from "../shared/sources" Promise.all(Object.keys(sources).map(id => - fetch(`https://newsnow.busiyi.world/api/s/${id}?latest`, { - headers: { - Authorization: `Bearer ${process.env.JWT_TOKEN}`, - }, - }), + fetch(`https://newsnow.busiyi.world/api/s?id=${id}`), )).catch(console.error)