feat: beta preparation + utf16 editor fix

This commit is contained in:
Nicolas Giard
2019-01-01 01:40:31 -05:00
parent 4bee20e664
commit 3b285c5074
24 changed files with 342 additions and 154 deletions

View File

@@ -60,7 +60,7 @@ module.exports = {
},
async register(obj, args, context) {
try {
await WIKI.models.users.register(args, context)
await WIKI.models.users.register({...args, verify: true }, context)
return {
responseResult: graphHelper.generateSuccess('Registration success')
}

View File

@@ -30,7 +30,11 @@ module.exports = {
},
UserMutation: {
create(obj, args) {
return WIKI.models.users.query().insertAndFetch(args)
return WIKI.models.users.register({
...args,
verify: false,
bypassChecks: true
})
},
delete(obj, args) {
return WIKI.models.users.query().deleteById(args.id)