aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-09 14:05:21 +0100
committerChocobozzz <me@florianbigard.com>2021-12-09 14:09:24 +0100
commit650580504cf14a87bd4025eec9673eb5642dc71d (patch)
treeae5dce55a9cbe8c392db4668bb599c74a17b241d /server/tests/fixtures
parenta554bc1a260a525cd635d62404b9fe76fdb9e36b (diff)
downloadPeerTube-650580504cf14a87bd4025eec9673eb5642dc71d.tar.gz
PeerTube-650580504cf14a87bd4025eec9673eb5642dc71d.tar.zst
PeerTube-650580504cf14a87bd4025eec9673eb5642dc71d.zip
Add filter:api.server.stats.get.result hook
Diffstat (limited to 'server/tests/fixtures')
-rw-r--r--server/tests/fixtures/peertube-plugin-test/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js
index db405ff31..aba415d1e 100644
--- a/server/tests/fixtures/peertube-plugin-test/main.js
+++ b/server/tests/fixtures/peertube-plugin-test/main.js
@@ -233,6 +233,13 @@ async function register ({ registerHook, registerSetting, settingsManager, stora
233 } 233 }
234 }) 234 })
235 235
236 registerHook({
237 target: 'filter:api.server.stats.get.result',
238 handler: (result) => {
239 return { ...result, customStats: 14 }
240 }
241 })
242
236 { 243 {
237 const filterHooks = [ 244 const filterHooks = [
238 'filter:api.search.videos.local.list.params', 245 'filter:api.search.videos.local.list.params',