Skip to content

Commit

Permalink
fix(interface): fix typo in permission based settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Feb 6, 2025
1 parent a4eef4b commit 7d9ab92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,9 @@ class Module {
promisedSettings.__permission_based__[category] = {};
}

set(promisedSettings, `__permission_based_${category}.${key}`, withoutDefaults ? await this.getPermissionBasedSettingsValue(key, false) : [await this.getPermissionBasedSettingsValue(key, false), defaultValue]);
set(promisedSettings, `__permission_based__.${category}.${key}`, withoutDefaults ? await this.getPermissionBasedSettingsValue(key, false) : [await this.getPermissionBasedSettingsValue(key, false), defaultValue]);
} else {
set(promisedSettings, `__permission_based_${key}`, withoutDefaults ? await this.getPermissionBasedSettingsValue(key, false) : [await this.getPermissionBasedSettingsValue(key, false), defaultValue]);
set(promisedSettings, `__permission_based__.${key}`, withoutDefaults ? await this.getPermissionBasedSettingsValue(key, false) : [await this.getPermissionBasedSettingsValue(key, false), defaultValue]);
}
}

Expand Down

0 comments on commit 7d9ab92

Please sign in to comment.