Updated user function

This commit is contained in:
Michael Mainguy 2023-10-13 09:30:05 -05:00
parent 8a2556b773
commit 1804ec0c9e

View File

@ -25,13 +25,14 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
'Access-Control-Allow-Credentials': 'true' 'Access-Control-Allow-Credentials': 'true'
}, },
statusCode: 200, statusCode: 200,
body: data body: JSON.stringify({data: data})
} }
} catch (err) { } catch (err) {
console.log(err); console.log(err);
const response = {err: err};
return { return {
statusCode: 500, statusCode: 500,
body: err body: JSON.stringify(response)
} }
} }
} }