Mongoose Adapter Single Index support-Spacing Fix
This commit is contained in:
parent
768ba2c677
commit
45e1df09db
|
@ -48,7 +48,7 @@ function MongooseAdapter(client) {
|
||||||
MongooseAdapter.prototype.define = function (descr) {
|
MongooseAdapter.prototype.define = function (descr) {
|
||||||
var props = {};
|
var props = {};
|
||||||
Object.keys(descr.properties).forEach(function (key) {
|
Object.keys(descr.properties).forEach(function (key) {
|
||||||
props[key] = {};
|
props[key] = {};
|
||||||
props[key].type = descr.properties[key].type;
|
props[key].type = descr.properties[key].type;
|
||||||
if (props[key].type.name === 'Text' || props[key].type.name === 'JSON') props[key].type = String;
|
if (props[key].type.name === 'Text' || props[key].type.name === 'JSON') props[key].type = String;
|
||||||
if (descr.properties[key].index) {
|
if (descr.properties[key].index) {
|
||||||
|
|
Loading…
Reference in New Issue