import * as express from 'express'
-import { param } from 'express-validator/check'
+import { param } from 'express-validator'
import { logger } from '../../helpers/logger'
import { areValidationErrors } from './utils'
import { isPluginNameValid, isPluginVersionValid } from '../../helpers/custom-validators/plugins'
if (areValidationErrors(req, res)) return
- const theme = PluginManager.Instance.getRegisteredTheme(req.params.themeName)
+ const theme = PluginManager.Instance.getRegisteredThemeByShortName(req.params.themeName)
if (!theme || theme.version !== req.params.themeVersion) {
return res.sendStatus(404)