diff options
Diffstat (limited to 'server/controllers/api/plugins.ts')
-rw-r--r-- | server/controllers/api/plugins.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/plugins.ts b/server/controllers/api/plugins.ts index de58a7350..86384ee27 100644 --- a/server/controllers/api/plugins.ts +++ b/server/controllers/api/plugins.ts | |||
@@ -25,7 +25,7 @@ import { ManagePlugin } from '../../../shared/models/plugins/manage-plugin.model | |||
25 | import { logger } from '../../helpers/logger' | 25 | import { logger } from '../../helpers/logger' |
26 | import { listAvailablePluginsFromIndex } from '../../lib/plugins/plugin-index' | 26 | import { listAvailablePluginsFromIndex } from '../../lib/plugins/plugin-index' |
27 | import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model' | 27 | import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model' |
28 | import { RegisteredSettings } from '../../../shared/models/plugins/register-setting.model' | 28 | import { RegisteredServerSettings } from '../../../shared/models/plugins/register-server-setting.model' |
29 | 29 | ||
30 | const pluginRouter = express.Router() | 30 | const pluginRouter = express.Router() |
31 | 31 | ||
@@ -164,7 +164,7 @@ async function uninstallPlugin (req: express.Request, res: express.Response) { | |||
164 | function getPluginRegisteredSettings (req: express.Request, res: express.Response) { | 164 | function getPluginRegisteredSettings (req: express.Request, res: express.Response) { |
165 | const settings = PluginManager.Instance.getRegisteredSettings(req.params.npmName) | 165 | const settings = PluginManager.Instance.getRegisteredSettings(req.params.npmName) |
166 | 166 | ||
167 | const json: RegisteredSettings = { settings } | 167 | const json: RegisteredServerSettings = { settings } |
168 | 168 | ||
169 | return res.json(json) | 169 | return res.json(json) |
170 | } | 170 | } |