aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-18 14:28:37 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commitb4055e1c23eeefb0c8a85a77f312b2827d98f483 (patch)
tree51b6b04c1ad10897047817d2eaaa037d1331fa6a /server/helpers
parent66e001c848c009412c65cbce41be344d8985fd83 (diff)
downloadPeerTube-b4055e1c23eeefb0c8a85a77f312b2827d98f483.tar.gz
PeerTube-b4055e1c23eeefb0c8a85a77f312b2827d98f483.tar.zst
PeerTube-b4055e1c23eeefb0c8a85a77f312b2827d98f483.zip
Add server hooks
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/core-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/core-utils.ts b/server/helpers/core-utils.ts
index 9771351e1..38b6f63f8 100644
--- a/server/helpers/core-utils.ts
+++ b/server/helpers/core-utils.ts
@@ -141,7 +141,7 @@ function root () {
141 const paths = [ __dirname, '..', '..' ] 141 const paths = [ __dirname, '..', '..' ]
142 142
143 // We are under /dist directory 143 // We are under /dist directory
144 if (process.mainModule && process.mainModule.filename.endsWith('.ts') === false) { 144 if (process.mainModule && process.mainModule.filename.endsWith('_mocha') === false) {
145 paths.push('..') 145 paths.push('..')
146 } 146 }
147 147