Remove id from role-permissions config

pull/5/head
Boaz Poolman 2021-03-27 16:20:37 +01:00
parent 4590c8fd6e
commit 75c4f97889
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ module.exports = {
})
);
await Promise.all(sanitizedRolesArray.map(async (config) => {
await Promise.all(sanitizedRolesArray.map(async ({id, ...config}) => {
// Check if the config should be excluded.
const shouldExclude = strapi.plugins['config-sync'].config.exclude.includes(`${configPrefix}.${config.type}`);
if (shouldExclude) return;
@ -97,7 +97,7 @@ module.exports = {
let configs = {};
Object.values(sanitizedRolesArray).map((config) => {
Object.values(sanitizedRolesArray).map(({ id, ...config }) => {
// Check if the config should be excluded.
const shouldExclude = strapi.plugins['config-sync'].config.exclude.includes(`${configPrefix}.${config.type}`);
if (shouldExclude) return;