aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-22 11:18:22 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit587568e1cc0e33c023c1ac62dd28fef313285250 (patch)
treee905b243d8a5fe5fb18ef5ef821c867cdde45aa6 /shared/core-utils
parent6691c52280363fc42f7865230ebb3741f02fff23 (diff)
downloadPeerTube-587568e1cc0e33c023c1ac62dd28fef313285250.tar.gz
PeerTube-587568e1cc0e33c023c1ac62dd28fef313285250.tar.zst
PeerTube-587568e1cc0e33c023c1ac62dd28fef313285250.zip
Add plugin table migration table
Diffstat (limited to 'shared/core-utils')
-rw-r--r--shared/core-utils/plugins/hooks.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/core-utils/plugins/hooks.ts b/shared/core-utils/plugins/hooks.ts
index 60f4130f5..3d59a7428 100644
--- a/shared/core-utils/plugins/hooks.ts
+++ b/shared/core-utils/plugins/hooks.ts
@@ -8,7 +8,7 @@ function getHookType (hookName: string) {
8 return HookType.STATIC 8 return HookType.STATIC
9} 9}
10 10
11async function internalRunHook <T>(handler: Function, hookType: HookType, result: T, params: any, onError: (err: Error) => void) { 11async function internalRunHook <T> (handler: Function, hookType: HookType, result: T, params: any, onError: (err: Error) => void) {
12 try { 12 try {
13 if (hookType === HookType.FILTER) { 13 if (hookType === HookType.FILTER) {
14 const p = handler(result, params) 14 const p = handler(result, params)