1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Change plugin models names

This commit is contained in:
Chocobozzz 2019-07-24 11:17:42 +02:00
parent 5f189c9c85
commit 9ae88819c2
No known key found for this signature in database
GPG key ID: 583A612D890159BE
14 changed files with 50 additions and 41 deletions

View file

@ -25,7 +25,7 @@ import { ManagePlugin } from '../../../shared/models/plugins/manage-plugin.model
import { logger } from '../../helpers/logger'
import { listAvailablePluginsFromIndex } from '../../lib/plugins/plugin-index'
import { PeertubePluginIndexList } from '../../../shared/models/plugins/peertube-plugin-index-list.model'
import { RegisteredSettings } from '../../../shared/models/plugins/register-setting.model'
import { RegisteredServerSettings } from '../../../shared/models/plugins/register-server-setting.model'
const pluginRouter = express.Router()
@ -164,7 +164,7 @@ async function uninstallPlugin (req: express.Request, res: express.Response) {
function getPluginRegisteredSettings (req: express.Request, res: express.Response) {
const settings = PluginManager.Instance.getRegisteredSettings(req.params.npmName)
const json: RegisteredSettings = { settings }
const json: RegisteredServerSettings = { settings }
return res.json(json)
}