This is a quick fix until we deal with the high levels of software entropy that has accumulated.
There are two models for a "Contact" one that exists here in lib/network/contact, and another one is lib/models/contact of MongoDB models. The two come into confusion at: https://github.com/Storj/service-storage-models/blob/master/lib/models/contact.js#L90 where this one is passed into the MongoDB models version, which often lacks all the properties, making it near impossible to set a default value, without inadvertently reseting the value.
This is a quick fix until we deal with the high levels of software entropy that has accumulated.
There are two models for a "Contact" one that exists here in lib/network/contact, and another one is lib/models/contact of MongoDB models. The two come into confusion at: https://github.com/Storj/service-storage-models/blob/master/lib/models/contact.js#L90 where this one is passed into the MongoDB models version, which often lacks all the properties, making it near impossible to set a default value, without inadvertently reseting the value.