aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/plugins/plugin-settings-manager.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-27 10:19:14 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-05-04 16:21:39 +0200
commit055cfb11a9d688dbc2dce5c164d1f0b311918378 (patch)
treec93f008b3e5463a9b8d024b45e5ba4b9f549a76b /shared/models/plugins/plugin-settings-manager.model.ts
parente307e4fce39853d445d086f92b8c556c363ee15d (diff)
downloadPeerTube-055cfb11a9d688dbc2dce5c164d1f0b311918378.tar.gz
PeerTube-055cfb11a9d688dbc2dce5c164d1f0b311918378.tar.zst
PeerTube-055cfb11a9d688dbc2dce5c164d1f0b311918378.zip
Add plugin auth migrations
Diffstat (limited to 'shared/models/plugins/plugin-settings-manager.model.ts')
-rw-r--r--shared/models/plugins/plugin-settings-manager.model.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/models/plugins/plugin-settings-manager.model.ts b/shared/models/plugins/plugin-settings-manager.model.ts
index 63390a190..f83f53b8f 100644
--- a/shared/models/plugins/plugin-settings-manager.model.ts
+++ b/shared/models/plugins/plugin-settings-manager.model.ts
@@ -1,7 +1,9 @@
1import * as Bluebird from 'bluebird' 1import * as Bluebird from 'bluebird'
2 2
3export interface PluginSettingsManager { 3export interface PluginSettingsManager {
4 getSetting: (name: string) => Bluebird<string> 4 getSetting: (name: string) => Bluebird<string | boolean>
5
6 getSettings: (names: string[]) => Bluebird<{ [settingName: string]: string | boolean }>
5 7
6 setSetting: (name: string, value: string) => Bluebird<any> 8 setSetting: (name: string, value: string) => Bluebird<any>
7} 9}