MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / setConfig

Method setConfig

packages/hydrooj/src/settings.ts:147–150  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

145 }
146
147 async setConfig(key: string, value: any) {
148 const newConfig = this.applyDelta(this.systemConfig, key, value);
149 await this.saveConfig(newConfig);
150 }
151
152 requestConfig<T, S>(s: Schema<T, S>, dynamic = true): S {
153 if (!this.settings.includes(s)) {

Callers 2

setMethod · 0.80
upgrade.tsFile · 0.80

Calls 2

applyDeltaMethod · 0.95
saveConfigMethod · 0.95

Tested by

no test coverage detected