Fix no response when get user permission role with internal network

This commit is contained in:
Cowboy 2019-12-02 14:58:57 +08:00
parent cf6ecbff4f
commit b6ee350ac0

View File

@ -100,12 +100,13 @@ module.exports = {
return await Promise.all(arrayOfPromises);
},
getPlugins(plugin, lang = 'en') {
getPlugins(lang = 'en') {
return new Promise(resolve => {
request(
{
uri: `https://marketplace.strapi.io/plugins?lang=${lang}`,
json: true,
timeout: 3000,
headers: {
'cache-control': 'max-age=3600',
},