Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Add missing await to ModelsController #20

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

pradel
Copy link
Contributor

@pradel pradel commented Jul 24, 2019

Currently, radiks does not await the validate function, this leads to some unhandled errors if the validate function is throwing.
Also if the validate function is throwing an error, the model will still be inserted in the database 🙈.

@hstove hstove merged commit 41098f6 into stacks-archive:develop Jul 25, 2019
@hstove
Copy link
Collaborator

hstove commented Jul 25, 2019

That is no bueno. Thanks for this!

@hstove
Copy link
Collaborator

hstove commented Jul 25, 2019

I've published v1.0.0-beta.4 with this fix.

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

Successfully merging this pull request may close these issues.

2 participants