mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Add plugin table migration table
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user