diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-17 15:46:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0 (patch) | |
tree | 7a107a1abfc474e7590d3e64fac4b5b01c12c7f4 /server/initializers | |
parent | 662e5d4fe4b0ac61867f3f4fa3bb38a8b8e5d0f5 (diff) | |
download | PeerTube-9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0.tar.gz PeerTube-9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0.tar.zst PeerTube-9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0.zip |
Some plugins fixes and doc enhancements
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 93ccb7da8..1111fd97f 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -19,7 +19,7 @@ const LAST_MIGRATION_VERSION = 400 | |||
19 | // --------------------------------------------------------------------------- | 19 | // --------------------------------------------------------------------------- |
20 | 20 | ||
21 | const API_VERSION = 'v1' | 21 | const API_VERSION = 'v1' |
22 | const PEERTUBE_VERSION = process.env.npm_package_version || 'unknown' | 22 | const PEERTUBE_VERSION = require(join(root(), 'package.json')).version |
23 | 23 | ||
24 | const PAGINATION = { | 24 | const PAGINATION = { |
25 | COUNT: { | 25 | COUNT: { |