From 9fa6ca160a9dda057c3980c6ee19f0ee426fd0a0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Jul 2019 15:46:51 +0200 Subject: Some plugins fixes and doc enhancements --- server/initializers/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/initializers') 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 // --------------------------------------------------------------------------- const API_VERSION = 'v1' -const PEERTUBE_VERSION = process.env.npm_package_version || 'unknown' +const PEERTUBE_VERSION = require(join(root(), 'package.json')).version const PAGINATION = { COUNT: { -- cgit v1.2.3