|
@@ -21,7 +21,7 @@ module.exports = (crowi) => {
|
|
|
const now = new Date();
|
|
const now = new Date();
|
|
|
const growiCloudUri = await crowi.configManager.getConfig('crowi', 'app:growiCloudUri');
|
|
const growiCloudUri = await crowi.configManager.getConfig('crowi', 'app:growiCloudUri');
|
|
|
|
|
|
|
|
- if (expiredAt == null || isAfter(now, expiredAt) || growiCloudUri != null) {
|
|
|
|
|
|
|
+ if ((expiredAt == null || isAfter(now, expiredAt)) && growiCloudUri != null) {
|
|
|
const url = new URL('_api/staffCredit', growiCloudUri);
|
|
const url = new URL('_api/staffCredit', growiCloudUri);
|
|
|
const growiContributors = contributors.slice(0, 1);
|
|
const growiContributors = contributors.slice(0, 1);
|
|
|
const otherContributors = contributors.slice(1);
|
|
const otherContributors = contributors.slice(1);
|
|
@@ -37,7 +37,7 @@ module.exports = (crowi) => {
|
|
|
logger.warn('Getting GROWI.cloud staffcredit is failed');
|
|
logger.warn('Getting GROWI.cloud staffcredit is failed');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return res.apiv3({ contributorsCache });
|
|
|
|
|
|
|
+ return res.apiv3({ contributors: contributorsCache });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
return router;
|
|
return router;
|