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

Update adding-logic.md (add async and hook-files) #73

Merged
merged 1 commit into from
Dec 16, 2016

Conversation

coderofsalvation
Copy link
Contributor

This will resolve:

#60
deployd/deployd#591

and new user onboarding:

5 dec 2016 @ https://gitter.im/deployd/deployd

Hey folks. Sorry if this has been asked before.
I need to modify some user data in onGet or onPost, but it looks like the script returns the user object before my synchronous task is completed
Encryption.encrypt(this.name, function(err, result) {
// doing stuff that takes a long time
}
//user object is returned before my encryption is competed
I'm a node newbie so there could be an obvious solution I'm not aware of

@NicolasRitouet
Copy link
Member

Great, I love documentation PRs 👍

@NicolasRitouet NicolasRitouet merged commit 2c936b5 into deployd:master Dec 16, 2016
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

Successfully merging this pull request may close these issues.

2 participants