Always put key at top of a core-store config file

pull/4/head
Boaz Poolman 2021-03-25 21:28:59 +01:00
parent 7da2f96bba
commit 00e9e8fcdf
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ module.exports = {
const coreStore = await strapi.query(coreStoreQueryString).find({ _limit: -1 });
let configs = {};
Object.values(coreStore).map( ({ id, value, ...config }) => {
configs[`${configPrefix}.${config.key}`] = { value: JSON.parse(value), ...config };
Object.values(coreStore).map( ({ id, value, key, ...config }) => {
configs[`${configPrefix}.${key}`] = { key, value: JSON.parse(value), ...config };
});
return configs;