mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Merge pull request #4638 from Cow258/@4625
Fix no response when get user permission role with internal network
This commit is contained in:
commit
4c72a53536
@ -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