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" import { sources } from "../shared/sources"
Promise.all(Object.keys(sources).map(id => Promise.all(Object.keys(sources).map(id =>
fetch(`https://newsnow.busiyi.world/api/s/${id}?latest`, { fetch(`https://newsnow.busiyi.world/api/s?id=${id}`),
headers: {
Authorization: `Bearer ${process.env.JWT_TOKEN}`,
},
}),
)).catch(console.error) )).catch(console.error)