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

Add plugin table migration table

This commit is contained in:
Chocobozzz 2019-07-22 11:18:22 +02:00 committed by Chocobozzz
parent 6691c52280
commit 587568e1cc
6 changed files with 51 additions and 4 deletions

View file

@ -8,7 +8,7 @@ function getHookType (hookName: string) {
return HookType.STATIC
}
async function internalRunHook <T>(handler: Function, hookType: HookType, result: T, params: any, onError: (err: Error) => void) {
async function internalRunHook <T> (handler: Function, hookType: HookType, result: T, params: any, onError: (err: Error) => void) {
try {
if (hookType === HookType.FILTER) {
const p = handler(result, params)