node-mongo-tenant
node-mongo-tenant copied to clipboard
Removes the preserveUniqueKey flag from index specification after using it
The flag presence on the index specification was causing mongoDB to throw the following error:
The field 'preserveUniqueKey' is not valid for an index specification. Specification: { key: { associatedInsurance: 1.0 }, ..., preserveUniqueKey: true }