chore: update script

This commit is contained in:
Ou 2024-11-05 00:04:35 +08:00
parent b8506b334e
commit aee0e936b6

View File

@ -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)