PeerTube/server/lib/plugins/plugin-helpers.ts

21 lines
458 B
TypeScript
Raw Normal View History

2020-04-09 09:57:32 +02:00
import { PluginModel } from '@server/models/server/plugin'
import { PeerTubeHelpers } from '@server/typings/plugins'
function buildPluginHelpers (npmName: string, plugin: PluginModel): PeerTubeHelpers {
const logger = buildLogger(npmName)
return {
logger
}
}
export {
buildPluginHelpers
}
// ---------------------------------------------------------------------------
function buildLogger (npmName: string) {
return buildLogger(npmName)
}