mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
karma -> karmaThresholds
This commit is contained in:
@@ -2,7 +2,7 @@ const { VIEW_PROTECTED_SETTINGS } = require('../../perms/constants');
|
||||
const { decorateWithPermissionCheck } = require('./util');
|
||||
|
||||
const Settings = {
|
||||
karma: (
|
||||
karmaThresholds: (
|
||||
settings,
|
||||
args,
|
||||
{ connectors: { services: { Karma: { THRESHOLDS } } } }
|
||||
@@ -16,7 +16,7 @@ const PROTECTED_SETTINGS = {
|
||||
autoCloseStream: [VIEW_PROTECTED_SETTINGS],
|
||||
wordlist: [VIEW_PROTECTED_SETTINGS],
|
||||
domains: [VIEW_PROTECTED_SETTINGS],
|
||||
karma: [VIEW_PROTECTED_SETTINGS],
|
||||
karmaThresholds: [VIEW_PROTECTED_SETTINGS],
|
||||
};
|
||||
|
||||
// decorate the fields on the settings resolver with a permission check.
|
||||
|
||||
@@ -897,8 +897,9 @@ type Settings {
|
||||
# domains will return a given list of domains.
|
||||
domains: Domains
|
||||
|
||||
# karma contains the currently set thresholds for triggering Trust beheviour.
|
||||
karma: KarmaThresholds
|
||||
# karmaThresholds contains the currently set thresholds for triggering Trust
|
||||
# beheviour.
|
||||
karmaThresholds: KarmaThresholds
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user