fix: JSON fields handling for MariaDB

This commit is contained in:
Nick committed 2019-02-09 19:10:34 -05:00
1 parent a8c7710412
commit b1dd54768f
35 files changed
+447 -35

No files matched your search

+5 -2
View File
@@ -22,12 +22,15 @@ module.exports = class Renderer extends Model {
properties: {
key: {type: 'string'},
isEnabled: {type: 'boolean'},
config: {type: 'object'}
isEnabled: {type: 'boolean'}
}
}
}
static get jsonAttributes() {
return ['config']
}
static async getRenderers() {
return WIKI.models.renderers.query()
}