feat: beta preparation + utf16 editor fix

This commit is contained in:
Nicolas Giard committed 2019-01-01 01:40:31 -05:00
1 parent 4bee20e664
commit 3b285c5074
24 files changed
+342 -154

No files matched your search

+1 -1
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')
}
+5 -1
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)