core
core copied to clipboard
stricter model validation
we had some playlist data corruptions because of a web client bug overnight. bugs in the client or web api should not be able to cause u-wave-core to store invalid objects.
in particular moving a playlist item could cause its id to become null
in the media
property in the Playlist
model.
Things to do:
- [ ] mark every array type in mongoose with
required: true