Always put key at top of a core-store config file
parent
7da2f96bba
commit
00e9e8fcdf
|
@ -52,8 +52,8 @@ module.exports = {
|
||||||
const coreStore = await strapi.query(coreStoreQueryString).find({ _limit: -1 });
|
const coreStore = await strapi.query(coreStoreQueryString).find({ _limit: -1 });
|
||||||
let configs = {};
|
let configs = {};
|
||||||
|
|
||||||
Object.values(coreStore).map( ({ id, value, ...config }) => {
|
Object.values(coreStore).map( ({ id, value, key, ...config }) => {
|
||||||
configs[`${configPrefix}.${config.key}`] = { value: JSON.parse(value), ...config };
|
configs[`${configPrefix}.${key}`] = { key, value: JSON.parse(value), ...config };
|
||||||
});
|
});
|
||||||
|
|
||||||
return configs;
|
return configs;
|
||||||
|
|
Loading…
Reference in New Issue