feat: core improvements + local fs provider + UI fixes
This commit is contained in:
@@ -6,7 +6,7 @@ const _ = require('lodash')
|
||||
module.exports = {
|
||||
Query: {
|
||||
settings(obj, args, context, info) {
|
||||
return WIKI.db.Setting.findAll({ where: args, raw: true }).then(entries => {
|
||||
return WIKI.models.Setting.findAll({ where: args, raw: true }).then(entries => {
|
||||
return _.map(entries, entry => {
|
||||
entry.config = JSON.stringify(entry.config)
|
||||
return entry
|
||||
@@ -16,7 +16,7 @@ module.exports = {
|
||||
},
|
||||
Mutation: {
|
||||
setConfigEntry(obj, args) {
|
||||
return WIKI.db.Setting.update({
|
||||
return WIKI.models.Setting.update({
|
||||
value: args.value
|
||||
}, { where: { key: args.key } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user