diff --git a/server/@types/peertube.d.ts b/server/@types/peertube.d.ts index b5596cee..d9a78310 100644 --- a/server/@types/peertube.d.ts +++ b/server/@types/peertube.d.ts @@ -17,7 +17,7 @@ interface PluginSettingsManager { getSetting: (name: string) => Promise getSettings: (names: string[]) => Promise<{ [settingName: string]: string | boolean }> setSetting: (name: string, value: string) => Promise - onSettingsChange: (cb: (names: string[]) => void) => void + onSettingsChange: (cb: (names: string[]) => Promise) => void } interface PluginStorageManager { diff --git a/server/lib/settings.ts b/server/lib/settings.ts index 3a9c9421..3d46c412 100644 --- a/server/lib/settings.ts +++ b/server/lib/settings.ts @@ -202,8 +202,6 @@ Before asking for help, please use this diagnostic tool: // settings changes management - // FIXME: Peertube <= 3.1.0 wrongly consider that the callback should not be async - // eslint-disable-next-line @typescript-eslint/no-misused-promises settingsManager.onSettingsChange(async (settings: any) => { if ('chat-use-prosody' in settings) { if (settings['chat-use-prosody'] === true) {