Skip to content

Commit 7639cf6

Browse files
authored
Merge pull request #14665 from github/repo-sync
repo sync
2 parents 43b8eeb + 5849522 commit 7639cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

middleware/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function (app) {
138138
app.set('trust proxy', 1)
139139
app.use(rateLimit)
140140
app.use(instrument(handleInvalidPaths, './handle-invalid-paths'))
141-
app.use(instrument(handleNextDataPath, './handle-next-data-path'))
141+
app.use(asyncMiddleware(instrument(handleNextDataPath, './handle-next-data-path')))
142142

143143
// *** Security ***
144144
app.use(cors)
@@ -212,7 +212,7 @@ export default function (app) {
212212
// *** Preparation for render-page: contextualizers ***
213213
app.use(asyncMiddleware(instrument(releaseNotes, './contextualizers/release-notes')))
214214
app.use(instrument(graphQL, './contextualizers/graphql'))
215-
app.use(instrument(rest, './contextualizers/rest'))
215+
app.use(asyncMiddleware(instrument(rest, './contextualizers/rest')))
216216
app.use(instrument(webhooks, './contextualizers/webhooks'))
217217
app.use(asyncMiddleware(instrument(whatsNewChangelog, './contextualizers/whats-new-changelog')))
218218
app.use(instrument(layout, './contextualizers/layout'))

0 commit comments

Comments
 (0)