Fixed a crash when theme is changed

refs #10790

- The error was happening due to wrong reference to the site app from themes service
- The issue was introduced in df7e64fafa
This commit is contained in:
Nazar Gargol 2019-06-24 13:59:41 +02:00
parent 22f56c95a8
commit e056c770da

View File

@ -114,7 +114,7 @@ module.exports = {
if (previousGhostAPI !== undefined && (previousGhostAPI !== currentGhostAPI)) {
common.events.emit('services.themes.api.changed');
const siteApp = require('../../web/site/app');
const siteApp = require('../../../server/web/site/app');
siteApp.reload();
}
} catch (err) {