context => appContext

This commit is contained in:
Pooya Parsa 2017-10-25 00:49:14 +03:30
parent 780013e590
commit aefa9f8c31

View File

@ -154,9 +154,9 @@ export function middlewareSeries(promises, appContext) {
if (!promises.length || appContext._redirected || appContext.app.nuxt.err) { if (!promises.length || appContext._redirected || appContext.app.nuxt.err) {
return Promise.resolve() return Promise.resolve()
} }
return promisify(promises[0], context) return promisify(promises[0], appContext)
.then(() => { .then(() => {
return middlewareSeries(promises.slice(1), context) return middlewareSeries(promises.slice(1), appContext)
}) })
} }