fix test function III

This commit is contained in:
2021-07-31 15:20:41 +02:00
parent d25eb544c5
commit d0c8659b6b

View File

@@ -10,13 +10,13 @@ exports.handler = async function(event, context) {
.then((response) => { .then((response) => {
return { return {
statusCode: 200, statusCode: 200,
body: response.data, body: JSON.stringify(response.data),
}; };
}) })
.catch((error) => { .catch((error) => {
return { return {
statusCode: 500, statusCode: 500,
body: 'discord api shat itself brb', body: JSON.stringify({ errorMsg: 'discord api shat itself brb' }),
}; };
}); });
}; };