Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Es6 migration for web/middleware #9737

Merged
merged 19 commits into from
Sep 10, 2018

Conversation

larsnolden
Copy link
Contributor

refs #9589

Changed the files

  • admin-redirect
  • brute
  • cache-control
  • custom-redirects
  • error-handler
  • frontend-client
  • ghost-locals
  • labs
  • log-request
  • maintenance
  • pretty-urls
  • serve-favicon
  • serve-public-file
  • static-theme
  • uncapitalise
  • url-redirects
    in the web/middleware folder and the web/admin, web/api files.

@vikaspotluri123 vikaspotluri123 mentioned this pull request Jul 17, 2018
5 tasks
@kirrg001
Copy link
Contributor

Thanks :) Will review on Monday!

@kirrg001 kirrg001 self-assigned this Jul 17, 2018
@@ -107,7 +106,7 @@ _private.ThemeErrorRenderer = function ThemeErrorRenderer(err, req, res, next) {
// It can be that something went wrong with the theme or otherwise loading handlebars
// This ensures that no matter what res.render will work here
// @TODO: split the error handler for assets, admin & theme to refactor this away
if (_.isEmpty(req.app.engines)) {
if (req.app.engines.length === 0) {

This comment was marked as abuse.

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment :) Thanks for the PR

@@ -107,7 +106,7 @@ _private.ThemeErrorRenderer = function ThemeErrorRenderer(err, req, res, next) {
// It can be that something went wrong with the theme or otherwise loading handlebars
// This ensures that no matter what res.render will work here
// @TODO: split the error handler for assets, admin & theme to refactor this away
if (_.isEmpty(req.app.engines)) {
if (Object.keys(req.app.engines).length === 0) {

This comment was marked as abuse.

This comment was marked as abuse.

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@kirrg001 kirrg001 merged commit 5e96393 into TryGhost:master Sep 10, 2018
rishabhgrg pushed a commit to rishabhgrg/Ghost that referenced this pull request Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants