Mongoose Adapter Single Index support-Spacing Fix

This commit is contained in:
Nashad Alam 2012-09-20 14:22:36 +10:00
parent 768ba2c677
commit 45e1df09db
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function MongooseAdapter(client) {
MongooseAdapter.prototype.define = function (descr) {
var props = {};
Object.keys(descr.properties).forEach(function (key) {
props[key] = {};
props[key] = {};
props[key].type = descr.properties[key].type;
if (props[key].type.name === 'Text' || props[key].type.name === 'JSON') props[key].type = String;
if (descr.properties[key].index) {