Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sanitize incoming model relation data
refs #9548 - we always receive date strings from the client in ISO format - we ensure that we transform these strings into JS dates for comparison - when the client sends relations, we need to ensure that relations are checked as well - will only work for the post model for now, because this is the only model which uses `bookshelf-relations` - added unit tests - removed some model tests, which do the same
- Loading branch information
Showing
4 changed files
with
97 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters