chore: update comments

pull/168/head
Charles Powell 2025-01-29 13:13:50 +00:00
parent 7f72442c54
commit e5b59a831f
1 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ export default () => ({
* @returns {void}
*/
writeConfigFile: async (configType, configName, fileContents) => {
// Check if the config should be excluded.
// Check if the config should be included.
const shouldInclude = isEmpty(strapi.config.get('plugin::config-sync.includedConfig')) || !isEmpty(strapi.config.get('plugin::config-sync.includedConfig').filter((option) => `${configType}.${configName}`.startsWith(option)));
const shouldExclude = !isEmpty(strapi.config.get('plugin::config-sync.excludedConfig').filter((option) => `${configType}.${configName}`.startsWith(option)));
if (!shouldInclude || shouldExclude) return;
@ -58,7 +58,7 @@ export default () => ({
* @returns {void}
*/
deleteConfigFile: async (configName) => {
// Check if the config should be excluded.
// Check if the config should be included.
const shouldInclude = isEmpty(strapi.config.get('plugin::config-sync.includedConfig')) || !isEmpty(strapi.config.get('plugin::config-sync.includedConfig').filter((option) => configName.startsWith(option)));
const shouldExclude = !isEmpty(strapi.config.get('plugin::config-sync.excludedConfig').filter((option) => configName.startsWith(option)));
if (!shouldInclude || shouldExclude) return;
@ -242,7 +242,7 @@ export default () => ({
* @returns {void}
*/
importSingleConfig: async (configName, onSuccess, force) => {
// Check if the config should be excluded.
// Check if the config should be included.
const shouldInclude = isEmpty(strapi.config.get('plugin::config-sync.includedConfig')) || !isEmpty(strapi.config.get('plugin::config-sync.includedConfig').filter((option) => configName.startsWith(option)));
const shouldExclude = !isEmpty(strapi.config.get('plugin::config-sync.excludedConfig').filter((option) => configName.startsWith(option)));
if (!shouldInclude || shouldExclude) return;
@ -269,7 +269,7 @@ export default () => ({
*/
exportSingleConfig: async (configName, onSuccess) => {
console.log(configName);
// Check if the config should be excluded.
// Check if the config should be included.
const shouldInclude = isEmpty(strapi.config.get('plugin::config-sync.includedConfig')) || !isEmpty(strapi.config.get('plugin::config-sync.includedConfig').filter((option) => configName.startsWith(option)));
const shouldExclude = !isEmpty(strapi.config.get('plugin::config-sync.excludedConfig').filter((option) => configName.startsWith(option)));
if (!shouldInclude || shouldExclude) return;