Skip to content

Commit

Permalink
fix resolve handlers list order
Browse files Browse the repository at this point in the history
  • Loading branch information
Evheniy Bystrov committed Feb 17, 2017
1 parent 37e62b5 commit 410c6ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -28,13 +28,15 @@ module.exports = class {
debug('Server started');
return async (req, res) => {
const context = { req, res, app: this };
const promises = [...this.promises];
try {
await promisify(context, [...this.promises]);
await promisify(context, this.promises);
} catch (error) {
if (error && this.error) {
this.error(error, context);
}
}
this.promises = promises;
};
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "yeps",
"version": "0.0.10",
"version": "0.0.11",
"description": "Yet Another Event Promised Server",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 410c6ad

Please sign in to comment.