Skip to content

Commit

Permalink
fix(PagesBuilder): use context from promise
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed May 6, 2021
1 parent a68926f commit 3575a32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vk-io-pages",
"version": "1.7.3",
"version": "1.7.4",
"description": "Модуль vk-io для создания динамических страниц",
"scripts": {
"prebuild": "tsc && node --experimental-modules --es-module-specifier-resolution=node ./scripts/removeEmptyFiles.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/PagesBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export class PagesBuilder extends Event.EventEmitter {
:
context.send(page)
)
.then(() => {
.then((context: IContext) => {
if (typeof context === "object") {
this.sentContext = context;
this.saveContext();
Expand Down

0 comments on commit 3575a32

Please sign in to comment.