Cleanup
This commit is contained in:
2
node_modules/mongoose/lib/plugins/sharding.js
generated
vendored
2
node_modules/mongoose/lib/plugins/sharding.js
generated
vendored
@@ -56,7 +56,7 @@ module.exports.storeShard = storeShard;
|
||||
|
||||
function storeShard() {
|
||||
// backwards compat
|
||||
const key = this.schema.options.shardKey || this.schema.options.shardkey;
|
||||
const key = this.$__schema.options.shardKey || this.$__schema.options.shardkey;
|
||||
if (!utils.isPOJO(key)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user