mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 04:11:26 +08:00
chore: bump got from 9.x to 10.x (#3875)
This commit is contained in:
@@ -3,6 +3,7 @@ const config = require('@/config').value;
|
||||
const md = require('markdown-it')({
|
||||
html: true,
|
||||
});
|
||||
const queryString = require('query-string');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const user = ctx.params.user;
|
||||
@@ -16,12 +17,12 @@ module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url,
|
||||
params: {
|
||||
searchParams: queryString.stringify({
|
||||
state: state,
|
||||
labels: labels,
|
||||
sort: 'created',
|
||||
access_token: config.github && config.github.access_token,
|
||||
},
|
||||
}),
|
||||
});
|
||||
const data = response.data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user