adapt-security / adapt-authoring

A server-based user interface for authoring eLearning courses using the Adapt framework.
http://adaptlearning.org
10 stars 5 forks source link

Mongo 11000 errors should probably return 400 instead of 500 #231

Closed taylortom closed 4 years ago

taylortom commented 4 years ago

i.e. E11000 duplicate key error index, thrown when trying to insert a doc with a duplicate unique key (e.g. can't have two users with the same email).

taylortom commented 4 years ago

Done in https://github.com/adapt-security/adapt-authoring-mongodb/commit/b596741d2882a81536ba15231c02a1869f8f7fb1