(newConfig)
| 316 | } |
| 317 | |
| 318 | updateConfig(newConfig) { |
| 319 | this.config = newConfig; |
| 320 | |
| 321 | // Override temp download settings for Elfhosted platform |
| 322 | if (this.isElfhostedPlatform()) { |
| 323 | this.config.useTmpForDownloads = true; |
| 324 | this.config.tmpFilePath = '/app/config/temp_downloads'; |
| 325 | } |
| 326 | |
| 327 | this.saveConfig(); |
| 328 | // Emit a change event |
| 329 | this.emit('change'); |
| 330 | } |
| 331 | |
| 332 | saveConfig() { |
| 333 | // Create a copy of the config to save |
no test coverage detected