fix: JSON fields handling for MariaDB
This commit is contained in:
@@ -21,12 +21,15 @@ module.exports = class Editor extends Model {
|
||||
|
||||
properties: {
|
||||
key: {type: 'string'},
|
||||
isEnabled: {type: 'boolean'},
|
||||
config: {type: 'object'}
|
||||
isEnabled: {type: 'boolean'}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static get jsonAttributes() {
|
||||
return ['config']
|
||||
}
|
||||
|
||||
static async getEditors() {
|
||||
return WIKI.models.editors.query()
|
||||
}
|
||||
|
Reference in New Issue
Block a user