Skip to content

Commit 3d91cfe

Browse files
committed
Merge branch 'portokallidis-patch-1' into develop
2 parents 1fcba44 + f187053 commit 3d91cfe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

common/models/meta.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ module.exports = function (Meta) {
5151
var result = {};
5252
modelNames.forEach(function (modelName) {
5353
var model = models[modelName];
54+
55+
//add type transformation until ES6
56+
for(var key in model.definition.properties) {
57+
var type=model.definition.properties[key].type.toString().toLowerCase().substr('function '.length);
58+
type=type.substr(0, type.indexOf('('));
59+
model.definition.properties[key].stringType=type;
60+
}
61+
5462
result[modelName] = model.definition.properties;
5563
});
5664
process.nextTick(function () {

0 commit comments

Comments
 (0)