From 9de4cbf68e671debe992e9b8c2454aef8961611a Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Mon, 19 Oct 2020 19:53:11 +1100 Subject: [PATCH] simplify identity signup function --- api/src/functions/identity-signup.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/api/src/functions/identity-signup.js b/api/src/functions/identity-signup.js index 9524495..acca039 100644 --- a/api/src/functions/identity-signup.js +++ b/api/src/functions/identity-signup.js @@ -1,4 +1,6 @@ -import { createUser } from 'src/services/users/users.js' +// import { createUser } from 'src/services/users/users.js' + +// identity-signup.js export const handler = async (req, _context) => { const body = JSON.parse(req.body) @@ -13,15 +15,15 @@ export const handler = async (req, _context) => { if (eventType === 'signup') { roles.push('user') - const hi = { - email: 'kurt.hutten@gmail.com', - image: '', - bio: '' - } - const input = { - email, - } - createUser({input}) + // const hi = { + // email: 'kurt.hutten@gmail.com', + // image: '', + // bio: '' + // } + // const input = { + // email, + // } + // createUser({input}) return { statusCode: 200,