Hi,
I've been seeing an error when using the sails-memory adapter with models that don't explicitly specify
It seems in the enforceUniqueness function in database.js, the call do attrDef.unique is returning a function that returns an empty array rather than a value in the case of not having the unique key explicitly specified in the model.
This causes this line of code
if(!attrDef.unique) continue;
to always evaluate to true, rather than skipping over those attributes that do not have the uniqueness key. It this an issue with the way I am defining my model? Or is it supposed to return a function when there is no key present?