Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

xDBActions should have validation be optional #158

Closed
amilner42 opened this issue Apr 28, 2017 · 1 comment
Closed

xDBActions should have validation be optional #158

amilner42 opened this issue Apr 28, 2017 · 1 comment

Comments

@amilner42
Copy link
Owner

We often use it internally, validation is only needed when we get data from the user.

@amilner42
Copy link
Owner Author

Refer to qa.model.ts once it's merged to see how I handle optional validation.

Once we switch everything to optional validation, make sure every time we call the function internally (and not from a route endpoint) that we don't run validation. As well, for those functions where we no longer run validation, you no longer need to change IDs to string form, you can leave them as ObjectIDs because the validator won't be checking.

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

No branches or pull requests

2 participants