mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Fix no response when get user permission role with internal network
This commit is contained in:
parent
cf6ecbff4f
commit
b6ee350ac0
@ -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',
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user