core icon indicating copy to clipboard operation
core copied to clipboard

stricter model validation

Open goto-bus-stop opened this issue 6 years ago • 0 comments

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

goto-bus-stop avatar Jul 20 '18 12:07 goto-bus-stop