mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
chore: update script
This commit is contained in:
parent
b8506b334e
commit
aee0e936b6
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user