Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AResouce.list.data.after is not called if AResouce.list.data is not presented #217

Open
linktohack opened this issue Sep 25, 2017 · 0 comments

Comments

@linktohack
Copy link

Here is an example:

AResource.list.data.after((req, res, context) => {
	console.log('before instance is');
	return context.continue;
});

// AResource.list.data((req, res, context) => {
// 	console.log('instance is', JSON.stringify(context.instance));
// 	context.instance = _.map(context.instance, (it: Sequelize.Instance<any>) => db.withoutPassword(it.toJSON()));
// 	return context.continue;
// });

If the /data/ block is commented out, the /after/ block is also not executed and vice versa.

I'm using "epilogue": "^0.7.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant