From aee0e936b6d0c1674e6324c184eb1b567016fba0 Mon Sep 17 00:00:00 2001 From: Ou Date: Tue, 5 Nov 2024 00:04:35 +0800 Subject: [PATCH] chore: update script --- scripts/refresh.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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)