mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
refactor: rename axios to got
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
const axios = require('@/utils/axios');
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = {
|
||||
getPatchnameFromID: async (ctx, id) => {
|
||||
const key = 'patchwork-kernel-org-patchname-from-id-' + id;
|
||||
let name = await ctx.cache.get(key);
|
||||
if (!name) {
|
||||
const patchDetail = await axios({
|
||||
const patchDetail = await got({
|
||||
method: 'get',
|
||||
url: `https://patchwork.kernel.org/api/patches/${id}/`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user