aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/plugins/hooks.ts
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 /server/lib/plugins/hooks.ts
parent6691c52280363fc42f7865230ebb3741f02fff23 (diff)
downloadPeerTube-587568e1cc0e33c023c1ac62dd28fef313285250.tar.gz
PeerTube-587568e1cc0e33c023c1ac62dd28fef313285250.tar.zst
PeerTube-587568e1cc0e33c023c1ac62dd28fef313285250.zip
Add plugin table migration table
Diffstat (limited to 'server/lib/plugins/hooks.ts')
-rw-r--r--server/lib/plugins/hooks.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/plugins/hooks.ts b/server/lib/plugins/hooks.ts
index b694d4118..bcc8c674e 100644
--- a/server/lib/plugins/hooks.ts
+++ b/server/lib/plugins/hooks.ts
@@ -9,7 +9,7 @@ type RawFunction <U, T> = (params: U) => T
9// Helpers to run hooks 9// Helpers to run hooks
10const Hooks = { 10const Hooks = {
11 wrapObject: <T, U extends ServerFilterHookName>(result: T, hookName: U) => { 11 wrapObject: <T, U extends ServerFilterHookName>(result: T, hookName: U) => {
12 return PluginManager.Instance.runHook(hookName, result) as Promise<T> 12 return PluginManager.Instance.runHook(hookName, result)
13 }, 13 },
14 14
15 wrapPromiseFun: async <U, T, V extends ServerFilterHookName>(fun: PromiseFunction<U, T>, params: U, hookName: V) => { 15 wrapPromiseFun: async <U, T, V extends ServerFilterHookName>(fun: PromiseFunction<U, T>, params: U, hookName: V) => {