feat: apollo upgrade to 2.0 + dev improvements + localization
This commit is contained in:
@@ -29,8 +29,6 @@ module.exports = {
|
||||
osLabel = `${os.type()} - ${osInfo.dist} (${osInfo.codename || os.platform()}) ${osInfo.release || os.release()} ${os.arch()}`
|
||||
}
|
||||
|
||||
console.info(WIKI.db.knex.client)
|
||||
|
||||
return {
|
||||
configFile: path.join(process.cwd(), 'config.yml'),
|
||||
currentVersion: WIKI.version,
|
||||
|
@@ -21,7 +21,10 @@ module.exports = {
|
||||
.select('id', 'email', 'name', 'provider', 'role', 'createdAt', 'updatedAt')
|
||||
},
|
||||
async single(obj, args, context, info) {
|
||||
return WIKI.db.users.query().findById(args.id)
|
||||
let usr = await WIKI.db.users.query().findById(args.id)
|
||||
usr.password = ''
|
||||
usr.tfaSecret = ''
|
||||
return usr
|
||||
}
|
||||
},
|
||||
UserMutation: {
|
||||
|
Reference in New Issue
Block a user