Switched Sentry to use helper file for Ghost version

no issue
This commit is contained in:
Daniel Lockyer 2020-03-26 15:35:46 +00:00
parent 1acbe3e51a
commit 4f01bb34f9

View File

@ -7,7 +7,7 @@ const expressNoop = function (req, res, next) {
if (sentryConfig && !sentryConfig.disabled) {
const Sentry = require('@sentry/node');
const version = require('../../package.json').version;
const version = require('./lib/ghost-version').full;
Sentry.init({
dsn: sentryConfig.dsn,
release: 'ghost@' + version