renamed generatePayload -> payload

This commit is contained in:
Johan Roxendal 2017-05-24 12:46:22 +02:00
parent b2d5186e39
commit 7cfa548ddf
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export function getContext (context, app) {
app: app,
<%= (store ? 'store: context.store,' : '') %>
route: (context.to ? context.to : context.route),
generatePayload : context.generatePayload,
payload : context.payload,
error: context.error,
base: '<%= router.base %>',
env: <%= JSON.stringify(env) %>

View File

@ -103,7 +103,7 @@ export default async function () {
await waitFor(n++ * this.options.generate.interval)
let html
try {
const res = await this.renderRoute(route, { _generate: true, generatePayload: payload })
const res = await this.renderRoute(route, { _generate: true, payload })
html = res.html
if (res.error) {
errors.push({ type: 'handled', route, error: res.error })