aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/plugins/register-helpers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-20 16:02:15 +0200
committerChocobozzz <me@florianbigard.com>2021-04-20 16:02:15 +0200
commit24a792404cac0dffff91853af33310fbb7a30297 (patch)
tree997f771146fe57527ca50a2d6e18febbc9baf124 /server/lib/plugins/register-helpers.ts
parent51b66ea7cb39f075f4deb8ea92ba70f3be289769 (diff)
downloadPeerTube-24a792404cac0dffff91853af33310fbb7a30297.tar.gz
PeerTube-24a792404cac0dffff91853af33310fbb7a30297.tar.zst
PeerTube-24a792404cac0dffff91853af33310fbb7a30297.zip
Support async onSettingsChange
Diffstat (limited to 'server/lib/plugins/register-helpers.ts')
-rw-r--r--server/lib/plugins/register-helpers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/plugins/register-helpers.ts b/server/lib/plugins/register-helpers.ts
index c018e54a8..aa69ca2a2 100644
--- a/server/lib/plugins/register-helpers.ts
+++ b/server/lib/plugins/register-helpers.ts
@@ -73,7 +73,7 @@ export class RegisterHelpers {
73 private idAndPassAuths: RegisterServerAuthPassOptions[] = [] 73 private idAndPassAuths: RegisterServerAuthPassOptions[] = []
74 private externalAuths: RegisterServerAuthExternalOptions[] = [] 74 private externalAuths: RegisterServerAuthExternalOptions[] = []
75 75
76 private readonly onSettingsChangeCallbacks: ((settings: any) => void)[] = [] 76 private readonly onSettingsChangeCallbacks: ((settings: any) => Promise<any>)[] = []
77 77
78 private readonly router: express.Router 78 private readonly router: express.Router
79 79
@@ -277,7 +277,7 @@ export class RegisterHelpers {
277 277
278 setSetting: (name: string, value: string) => PluginModel.setSetting(this.plugin.name, this.plugin.type, name, value), 278 setSetting: (name: string, value: string) => PluginModel.setSetting(this.plugin.name, this.plugin.type, name, value),
279 279
280 onSettingsChange: (cb: (settings: any) => void) => this.onSettingsChangeCallbacks.push(cb) 280 onSettingsChange: (cb: (settings: any) => Promise<any>) => this.onSettingsChangeCallbacks.push(cb)
281 } 281 }
282 } 282 }
283 283