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